}
else
{
- Con_DPrintf("Initializing client\n");
+ Con_Printf("Initializing client\n");
R_Modules_Init();
Palette_Init();
if (protocol == PROTOCOL_QUAKEDP && cls.demoplayback && gamemode == GAME_NEHAHRA)
protocol = PROTOCOL_NEHAHRAMOVIE;
cls.protocol = protocol;
- Con_DPrintf("Server protocol is %s\n", Protocol_NameForEnum(cls.protocol));
+ Con_Printf("Server protocol is %s\n", Protocol_NameForEnum(cls.protocol));
cl.num_entities = 1;
// initialize console window (only used by sys_win.c)
Sys_InitConsole();
- Con_DPrint("Console initialized.\n");
+ Con_Print("Console initialized.\n");
}
void Con_Shutdown (void)
return;
}
- Con_DPrintf("CSQC %s ^5loaded (crc=%i, size=%i)\n", csprogsfn, csprogsdatacrc, (int)csprogsdatasize);
-
if(cls.demorecording)
{
if(cls.demo_lastcsprogssize != csprogsdatasize || cls.demo_lastcsprogscrc != csprogsdatacrc)
Mem_ExpandableArray_NewArray(&gl_state.meshbufferarray, r_main_mempool, sizeof(r_meshbuffer_t), 128);
- Con_DPrintf("OpenGL backend started.\n");
+ Con_Printf("OpenGL backend started\n");
CHECKGLERROR
static void gl_backend_shutdown(void)
{
- Con_DPrint("OpenGL Backend shutting down\n");
+ Con_Print("OpenGL backend shutting down\n");
switch(vid.renderpath)
{
if(fnt->req_face != -1)
{
if(!Font_LoadFont(fnt->texpath, fnt))
- Con_DPrintf("Failed to load font-file for '%s', it will not support as many characters.\n", fnt->texpath);
+ Con_Printf("Failed to load font-file for '%s', it will not support as many characters.\n", fnt->texpath);
}
fnt->pic = Draw_CachePic_Flags(fnt->texpath, CACHEPICFLAG_QUIET | CACHEPICFLAG_NOCOMPRESSION | (r_nearest_conchars.integer ? CACHEPICFLAG_NEAREST : 0) | CACHEPICFLAG_FAILONMISSING);
{
// no internal lightmaps
// try external lightmaps
- if (developer_loading.integer)
- Con_Printf("Using external lightmaps\n");
FS_StripExtension(loadmodel->name, mapname, sizeof(mapname));
inpixels[0] = loadimagepixelsbgra(va(vabuf, sizeof(vabuf), "%s/lm_%04d", mapname, 0), false, false, false, NULL);
if(!inpixels[0])
return;
+ else
+ Con_Printf("Using external lightmaps\n");
// using EXTERNAL lightmaps instead
if(image_width != (int) CeilPowerOf2(image_width) || image_width != image_height)
}
}
- Con_DPrintf("%s is %sdeluxemapped\n", loadmodel->name, loadmodel->brushq3.deluxemapping ? "" : "not ");
+ Con_Printf("%s is %sdeluxemapped\n", loadmodel->name, loadmodel->brushq3.deluxemapping ? "" : "not ");
// figure out what the most reasonable merge power is within limits
prog->profiletime = Sys_DirtyTime();
prog->starttime = host.realtime;
- Con_DPrintf("%s programs occupy %iK.\n", prog->name, (int)(filesize/1024));
-
requiredglobalspace = 0;
for (i = 0;i < numrequiredglobals;i++)
requiredglobalspace += required_global[i].type == ev_vector ? 3 : 1;
// init mempools
PRVM_MEM_Alloc(prog);
+ Con_Printf("Progs \"%s\" loaded (crc %i, size %iK)\n", prog->name, prog->progs_crc, (int)(filesize/1024));
+
// Inittime is at least the time when this function finished. However,
// later events may bump it.
prog->inittime = host.realtime;
// Can't load the sound!
sfx->flags |= SFXFLAG_FILEMISSING;
if (complain)
- Con_DPrintf("failed to load sound \"%s\"\n", sfx->name);
+ Con_Printf(CON_ERROR "Failed to load sound \"%s\"\n", sfx->name);
SCR_PopLoadingScreen(false);
return false;
char modelname[sizeof(sv.worldname)];
char vabuf[1024];
- Con_DPrintf("SpawnServer: %s\n", map);
+ Con_Printf("SpawnServer: %s\n", map);
dpsnprintf (modelname, sizeof(modelname), "maps/%s.bsp", map);
strlcpy(sv.worldmessage, PRVM_GetString(prog, PRVM_serveredictstring(prog->edicts, message)), sizeof(sv.worldmessage)); // map title (not related to filename)
Cvar_SetQuick(&sv_worldmessage, sv.worldmessage);
- Con_DPrint("Server spawned.\n");
+ Con_Printf("Server spawned.\n");
NetConn_Heartbeat (2);
if(cls.state == ca_dedicated)
void GL_Setup(void)
{
char *s;
+ int j;
+ GLint numextensions = 0;
const glfunction_t *func;
qboolean missingrequiredfuncs = false;
static char missingfuncs[16384];
Con_Printf("GL_RENDERER: %s\n", gl_renderer);
Con_Printf("GL_VERSION: %s\n", gl_version);
- if (developer.integer)
+ qglGetIntegerv(GL_NUM_EXTENSIONS, &numextensions);
+ Con_DPrint("GL_EXTENSIONS:\n");
+ for (j = 0; j < numextensions; j++)
{
- int j;
- GLint numextensions = 0;
- qglGetIntegerv(GL_NUM_EXTENSIONS, &numextensions);
- Con_DPrint("GL_EXTENSIONS:");
- for (j = 0; j < numextensions; j++)
- {
- const char *ext = (const char *)qglGetStringi(GL_EXTENSIONS, j);
- Con_DPrintf(" %s", ext);
- }
- Con_DPrint("\n");
+ const char *ext = (const char *)qglGetStringi(GL_EXTENSIONS, j);
+ Con_DPrintf(" %s", ext);
+ if(j && !(j % 3))
+ Con_DPrintf("\n");
}
+ Con_DPrint("\n");
#ifndef USE_GLES2
missingfuncs[0] = 0;
vid.support.glshaderversion = (int)(atof(s) * 100.0f + 0.5f);
if (vid.support.glshaderversion < 100)
vid.support.glshaderversion = 100;
- Con_DPrintf("Detected GLSL #version %i\n", vid.support.glshaderversion);
+ Con_Printf("Detected GLSL version %i\n", vid.support.glshaderversion);
#ifdef USE_GLES2
// GLES devices in general do not like GL_BGRA, so use GL_RGBA
CHECKGLERROR
#ifdef USE_GLES2
- Con_DPrint("Using GLES2 rendering path\n");
+ Con_Print("Using GLES2 rendering path\n");
vid.renderpath = RENDERPATH_GLES2;
vid.sRGBcapable2D = false;
vid.sRGBcapable3D = false;
#else
- Con_DPrint("Using GL32 rendering path\n");
+ Con_Print("Using GL32 rendering path\n");
vid.renderpath = RENDERPATH_GL32;
vid.sRGBcapable2D = false;
vid.sRGBcapable3D = true;