| 1431 | void CMainFrame::OnNcDestroy() { CFrameWnd::OnNcDestroy(); } |
| 1432 | |
| 1433 | void 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 | |
| 1455 | void InitCScripts() { |
| 1456 | char path[_MAX_PATH]; |
nothing calls this directly
no test coverage detected