dpsnprintf(soundname, sizeof(soundname), "sound/%s", cl.sound_name[cl.downloadsound_current]);
if (!FS_FileExists(soundname) && !FS_FileExists(cl.sound_name[cl.downloadsound_current]))
{
- Con_Printf("Sound %s not found\n", soundname);
if (cl_serverextension_download.integer && cls.netcon && !sv.active)
{
CL_ForwardToServer(va(vabuf, sizeof(vabuf), "download %s", soundname));
if (!vid_opened && cls.state != ca_dedicated)
{
vid_opened = true;
+#ifdef WIN32
// make sure we open sockets before opening video because the Windows Firewall "unblock?" dialog can screw up the graphics context on some graphics drivers
NetConn_UpdateSockets();
+#endif
VID_Start();
CDAudio_Startup();
}
return true;
// Load the DLL
- if(!Sys_LoadLibrary (dllnames, &png_dll, pngfuncs))
- return false;
- if(qpng_access_version_number() / 100 >= 104)
- if(!Sys_LoadLibrary (dllnames, &png14_dll, png14funcs))
+ if(!Sys_LoadLibrary (dllnames, &png14_dll, pngfuncs))
+ {
+ if(qpng_access_version_number() / 100 >= 104)
+ return false;
+ if(!Sys_LoadLibrary (dllnames, &png_dll, png14funcs))
{
- Sys_UnloadLibrary (&png_dll);
+ Sys_UnloadLibrary (&png14_dll);
return false;
}
+ }
return true;
}
port = bound(0, sv_netport.integer, 65535);
if (port == 0)
port = 26000;
- Con_Printf("Server using port %i\n", port);
if (sv_netport.integer != port)
Cvar_SetValueQuick(&sv_netport, port);
if (cls.state != ca_dedicated)
// init mempools
PRVM_MEM_Alloc(prog);
- Con_Printf("Progs \"%s\" loaded (crc %i, size %iK)\n", prog->name, prog->progs_crc, (int)(filesize/1024));
+ Con_Printf("%s: program loaded (crc %i, size %iK)\n", prog->name, prog->filecrc, (int)(filesize/1024));
// Inittime is at least the time when this function finished. However,
// later events may bump it.
if(*sv_random_seed.string)
{
srand(sv_random_seed.integer);
- Con_Printf("NOTE: random seed is %d; use for debugging/benchmarking only!\nUnset sv_random_seed to get real random numbers again.\n", sv_random_seed.integer);
+ Con_Printf(CON_WARN "NOTE: random seed is %d; use for debugging/benchmarking only!\nUnset sv_random_seed to get real random numbers again.\n", sv_random_seed.integer);
}
SV_VM_Setup();
{
char buffer[1024];
Protocol_Names(buffer, sizeof(buffer));
- Con_Printf("Unknown sv_protocolname \"%s\", valid values are:\n%s\n", sv_protocolname.string, buffer);
+ Con_Printf(CON_ERROR "Unknown sv_protocolname \"%s\", valid values are:\n%s\n", sv_protocolname.string, buffer);
sv.protocol = PROTOCOL_QUAKE;
}
}
Con_DPrintf(" - loaded.\n");
+ Con_Printf("Loaded library \"%s\"\n", dllnames[i]);
*handle = dllhandle;
return true;