/* ================ SV_TouchCGameDLL touch the cgame DLL so that a pure client (with DLL sv_pure support) can load do the correct checks ================ */ void SV_TouchCGameDLL( void ) { fileHandle_t f; char *filename; filename = Sys_GetDLLName( "cgame" ); FS_FOpenFileRead_Filtered( filename, &f, qfalse, FS_EXCLUDE_DIR ); if ( f ) { FS_FCloseFile( f ); } }
/* ================ SV_TouchCGameDLL touch the cgame DLL so that a pure client (with DLL sv_pure support) can load do the correct checks ================ */ void SV_TouchCGameDLL( void ) { fileHandle_t f; char *filename; // Only touch the legacy dll since we have qvm support filename = "cgame_mp_x86.dll"; FS_FOpenFileRead_Filtered( filename, &f, qfalse, FS_EXCLUDE_DIR ); if ( f ) { FS_FCloseFile( f ); } }
/** * @brief Touch the cgame DLL so that a pure client (with DLL sv_pure support) * can load do the correct checks */ void SV_TouchCGameDLL(void) { fileHandle_t f; char *filename; filename = Sys_GetDLLName("cgame"); FS_FOpenFileRead_Filtered(filename, &f, qfalse, FS_EXCLUDE_DIR); if (f) { FS_FCloseFile(f); } else if (sv_pure->integer) { Com_Error(ERR_DROP, "Failed to locate %s for pure server mode. " "You'll probably need cgame for other platforms too.", filename); } }
/* ================ SV_TouchCGameDLL touch the cgame DLL so that a pure client (with DLL sv_pure support) can load do the correct checks ================ */ void SV_TouchCGameDLL( void ) { fileHandle_t f; char *filename; filename = Sys_GetDLLName( "cgame" ); FS_FOpenFileRead_Filtered( filename, &f, qfalse, FS_EXCLUDE_DIR ); if ( f ) { FS_FCloseFile( f ); } else if ( sv_pure->integer ) { // ydnar: so we can work the damn game Com_Error( ERR_DROP, "Failed to locate cgame DLL for pure server mode" ); } }