From: bones_was_here Date: Tue, 3 Oct 2023 04:52:17 +0000 (+1000) Subject: Move QC extension reporting out of video initialisation X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=80fcab0cbc1ed464d1463d5336940596e5d4dbf6;p=xonotic%2Fdarkplaces.git Move QC extension reporting out of video initialisation Once at startup is enough, no need to do this during vid_restart (etc). Signed-off-by: bones_was_here --- diff --git a/prvm_edict.c b/prvm_edict.c index 858ab357..cac50b27 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -3144,6 +3144,8 @@ PRVM_Init */ void PRVM_Init (void) { + unsigned int i; + Cmd_AddCommand(CF_SHARED, "prvm_edict", PRVM_ED_PrintEdict_f, "print all data about an entity number in the selected VM (server, client, menu)"); Cmd_AddCommand(CF_SHARED, "prvm_edicts", PRVM_ED_PrintEdicts_f, "prints all data about all entities in the selected VM (server, client, menu)"); Cmd_AddCommand(CF_SHARED, "prvm_edictcount", PRVM_ED_Count_f, "prints number of active entities in the selected VM (server, client, menu)"); @@ -3188,6 +3190,18 @@ void PRVM_Init (void) prvm_runawaycheck = !Sys_CheckParm("-norunaway"); //VM_Cmd_Init(); + + // LadyHavoc: report supported extensions + Con_DPrintf("\nQuakeC extensions for server and client:"); + for (i = 0; vm_sv_extensions[i]; i++) + Con_DPrintf(" %s", vm_sv_extensions[i]); + Con_DPrintf("\n"); +#ifdef CONFIG_MENU + Con_DPrintf("\nQuakeC extensions for menu:"); + for (i = 0; vm_m_extensions[i]; i++) + Con_DPrintf(" %s", vm_m_extensions[i]); + Con_DPrintf("\n"); +#endif } /* diff --git a/vid_sdl.c b/vid_sdl.c index 5b581c5d..91115ca1 100644 --- a/vid_sdl.c +++ b/vid_sdl.c @@ -1615,18 +1615,6 @@ static qbool VID_InitModeGL(viddef_mode_t *mode) Cvar_SetQuick(&gl_info_platform, gl_platform ? gl_platform : ""); Cvar_SetQuick(&gl_info_driver, gl_driver); - // LadyHavoc: report supported extensions - Con_DPrintf("\nQuakeC extensions for server and client:"); - for (i = 0; vm_sv_extensions[i]; i++) - Con_DPrintf(" %s", vm_sv_extensions[i]); - Con_DPrintf("\n"); -#ifdef CONFIG_MENU - Con_DPrintf("\nQuakeC extensions for menu:"); - for (i = 0; vm_m_extensions[i]; i++) - Con_DPrintf(" %s", vm_m_extensions[i]); - Con_DPrintf("\n"); -#endif - // clear to black (loading plaque will be seen over this) GL_Clear(GL_COLOR_BUFFER_BIT, NULL, 1.0f, 0);