CL_Video_Init();
Host_StartVideo();
+ // put up the loading image so the user doesn't stare at a black screen...
+ SCR_BeginLoadingPlaque(true);
+
+ #ifdef CONFIG_MENU
+ Cbuf_InsertText(&cmd_client,"menu_start\n");
+ #endif
}
}
// if quake.rc is missing, use default
if (!FS_FileExists("quake.rc"))
{
- Cbuf_AddText(cmd, "exec default.cfg\nexec " CONFIGFILENAME "\nexec autoexec.cfg\n");
+ Cbuf_InsertText(cmd, "exec default.cfg\nexec " CONFIGFILENAME "\nexec autoexec.cfg\n");
Cbuf_Execute(cmd);
}
host.state = host_active;
Log_Start();
-
- // put up the loading image so the user doesn't stare at a black screen...
- SCR_BeginLoadingPlaque(true);
-
-#ifdef CONFIG_MENU
- if (cls.state != ca_dedicated)
- {
- MR_Init();
- }
-#endif
// check for special benchmark mode
// COMMANDLINEOPTION: Client: -benchmark <demoname> runs a timedemo and quits, results of any timedemo can be found in gamedir/benchmark.log (for example id1/benchmark.log)
Con_DPrint("========Initialized=========\n");
- //Host_StartVideo();
-
if (cls.state != ca_dedicated)
SV_StartThread();
}
MR_ToggleMenu(m);
}
+static qboolean menu_active;
+
+static void MR_Start_f(cmd_state_t *cmd)
+{
+ if(menu_active || cls.state == ca_dedicated)
+ return;
+ MR_Init();
+
+}
+
void MR_Init_Commands(void)
{
// set router console commands
Cvar_RegisterVariable (&forceqmenu);
Cvar_RegisterVariable (&menu_options_colorcontrol_correctionvalue);
Cvar_RegisterVariable (&menu_progs);
+ Cmd_AddCommand(CMD_CLIENT, "menu_start", MR_Start_f, "initialize the menu system");
Cmd_AddCommand(CMD_CLIENT, "menu_restart", MR_Restart_f, "restart menu system (reloads menu.dat)");
Cmd_AddCommand(CMD_CLIENT, "togglemenu", Call_MR_ToggleMenu_f, "opens or closes menu");
}
MR_SetRouting (true);
else
MR_SetRouting (false);
+ menu_active = true;
}