MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ResaveVClip

Function ResaveVClip

editor/LightingDialog.cpp:1601–1623  ·  view source on GitHub ↗

Takes a vclip name and resaves it

Source from the content-addressed store, hash-verified

1599
1600// Takes a vclip name and resaves it
1601void ResaveVClip(char *name) {
1602 int bm_handle = FindVClipName(name);
1603 if (bm_handle >= 0) {
1604 char search[256];
1605
1606 ddio_MakePath(search, LocalD3Dir, "data", "graphics", GameVClips[bm_handle].name, NULL);
1607 mprintf(0, "Resaving vclip %s.\n", search);
1608
1609 SaveVClip(search, bm_handle);
1610 } else {
1611 char search[256];
1612
1613 ddio_MakePath(search, LocalD3Dir, "data", "graphics", name, NULL);
1614
1615 bm_handle = AllocLoadVClip(search, NOT_TEXTURE, 0);
1616 if (bm_handle >= 0) {
1617 mprintf(0, "Resaving vclip %s.\n", search);
1618
1619 SaveVClip(search, bm_handle);
1620 } else
1621 Int3();
1622 }
1623}
1624
1625void ResaveAllBitmaps() {
1626 char buffer[_MAX_PATH];

Callers 1

ResaveAllBitmapsFunction · 0.85

Calls 4

FindVClipNameFunction · 0.85
SaveVClipFunction · 0.85
AllocLoadVClipFunction · 0.85
ddio_MakePathFunction · 0.50

Tested by

no test coverage detected