Copied from winmain.cpp
| 1466 | |
| 1467 | // Copied from winmain.cpp |
| 1468 | void WinMainInitEditor(unsigned hwnd, unsigned hinst) { |
| 1469 | tLnxAppInfo appinfo; |
| 1470 | |
| 1471 | // TODO: HWnd from SDL2 Window |
| 1472 | // appinfo.hwnd = (HWnd)hwnd; |
| 1473 | // appinfo.hinst = (HInstance)hinst; |
| 1474 | appinfo.flags = OEAPP_WINDOWED; |
| 1475 | |
| 1476 | Descent = new oeLnxApplication(&appinfo); |
| 1477 | Database = new oeLnxAppDatabase; |
| 1478 | } |
| 1479 | // Initializes OS components for Descent3. MUST BE DONE BEFORE ANYTHING ELSE! |
| 1480 | |
| 1481 | BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext *pContext) { |