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

Method SaveSoundsOnClose

editor/WorldSoundsDialog.cpp:764–778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

762}
763
764void CWorldSoundsDialog::SaveSoundsOnClose() {
765 int i, t;
766
767 if (!Network_up)
768 return; // don't save a damn thing if the network is down
769
770 for (i = 0; i < MAX_TRACKLOCKS; i++) {
771 if (GlobalTrackLocks[i].used == 1 && GlobalTrackLocks[i].pagetype == PAGETYPE_SOUND) {
772 t = FindSoundName(GlobalTrackLocks[i].name);
773 ASSERT(t != -1);
774
775 mng_ReplacePage(Sounds[t].name, Sounds[t].name, t, PAGETYPE_SOUND, 1);
776 }
777 }
778}
779
780BOOL CWorldSoundsDialog::DestroyWindow() {
781 SaveSoundsOnClose();

Callers

nothing calls this directly

Calls 2

FindSoundNameFunction · 0.85
mng_ReplacePageFunction · 0.85

Tested by

no test coverage detected