| 1479 | // Initializes OS components for Descent3. MUST BE DONE BEFORE ANYTHING ELSE! |
| 1480 | |
| 1481 | BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext *pContext) { |
| 1482 | // TODO: Add your specialized code here and/or call the base class |
| 1483 | PreInitD3Systems(); |
| 1484 | WinMainInitEditor((unsigned)CWnd::m_hWnd, (unsigned)AfxGetInstanceHandle()); |
| 1485 | ProgramVersion(DEVELOPMENT_VERSION, 0, 0, 0); |
| 1486 | |
| 1487 | DisplaySplashScreen(); |
| 1488 | |
| 1489 | // Initialize a ton of stuff. |
| 1490 | InitD3Systems1(true); |
| 1491 | InitD3Systems2(true); |
| 1492 | |
| 1493 | // Initialize scripts |
| 1494 | InitCScripts(); |
| 1495 | |
| 1496 | // Load variables from registry |
| 1497 | LoadEditorSettings(); |
| 1498 | |
| 1499 | // Change to the levels directory, since the most likely thing to open is a level |
| 1500 | ddio_SetWorkingDir("data\\levels"); |
| 1501 | |
| 1502 | return CFrameWnd::OnCreateClient(lpcs, pContext); |
| 1503 | } |
| 1504 | |
| 1505 | void CMainFrame::ResizeKeypad() { |
| 1506 | if (::IsWindow(m_wndKeypadBar.m_hWnd)) { |
nothing calls this directly
no test coverage detected