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

Function ResaveAllBitmaps

editor/LightingDialog.cpp:1625–1652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1623}
1624
1625void ResaveAllBitmaps() {
1626 char buffer[_MAX_PATH];
1627 char search[256];
1628
1629 ddio_MakePath(search, LocalD3Dir, "data", "graphics", "*.ogf", NULL);
1630
1631 if (ddio_FindFileStart(search, buffer)) {
1632 ResaveBitmap(buffer);
1633
1634 while ((ddio_FindNextFile(buffer))) {
1635 ResaveBitmap(buffer);
1636 }
1637 }
1638
1639 ddio_FindFileClose();
1640
1641 ddio_MakePath(search, LocalD3Dir, "data", "graphics", "*.oaf", NULL);
1642
1643 if (ddio_FindFileStart(search, buffer)) {
1644 ResaveVClip(buffer);
1645
1646 while ((ddio_FindNextFile(buffer))) {
1647 ResaveVClip(buffer);
1648 }
1649 }
1650
1651 ddio_FindFileClose();
1652}
1653
1654void CLightingDialog::OnVolumeLights() {
1655 int c = IsDlgButtonChecked(IDC_VOLUME_LIGHTS);

Callers

nothing calls this directly

Calls 6

ResaveBitmapFunction · 0.85
ResaveVClipFunction · 0.85
ddio_MakePathFunction · 0.50
ddio_FindFileStartFunction · 0.50
ddio_FindNextFileFunction · 0.50
ddio_FindFileCloseFunction · 0.50

Tested by

no test coverage detected