int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) { // win_main.cpp Sys_CreateConsole(); common->Init( 0, NULL, lpCmdLine ); { // Common.cpp InitGame(); { // Common.cpp session->Init(); { // Session.cpp guiMainMenu = uiManager->FindGui( "guis/mainmenu.gui", true, false, true ); } } session->StartMenu( true ); { // Session_menu.cpp guiMainMenu->HandleNamedEvent( playIntro ? "playIntro" : "noIntro" ); } } // hide or show the early console as necessary if ( win32.win_viewlog.GetInteger() || com_skipRenderer.GetBool() || idAsyncNetwork::serverDedicated.GetInteger() ) { Sys_ShowConsole( 1, true ); } else { Sys_ShowConsole( 0, false ); } }
时间: 2024-10-12 15:42:03