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

Method OnDestroy

editor/MainFrm.cpp:1433–1453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1431void CMainFrame::OnNcDestroy() { CFrameWnd::OnNcDestroy(); }
1432
1433void CMainFrame::OnDestroy() {
1434 CFrameWnd::OnDestroy();
1435
1436 // Save game & editor variables to the registry
1437 SaveGameSettings();
1438 SaveEditorSettings();
1439
1440 // kill game and editor objects outside MFC.
1441 if (Desktop_surf) {
1442 delete Desktop_surf;
1443 Desktop_surf = NULL;
1444 }
1445 if (Database) {
1446 delete Database;
1447 Database = NULL;
1448 }
1449 if (Descent) {
1450 delete Descent;
1451 Descent = NULL;
1452 }
1453}
1454
1455void InitCScripts() {
1456 char path[_MAX_PATH];

Callers

nothing calls this directly

Calls 2

SaveGameSettingsFunction · 0.85
SaveEditorSettingsFunction · 0.85

Tested by

no test coverage detected