Added bot code.

This commit is contained in:
Justin Marshall
2026-05-19 18:34:55 -07:00
parent b97127f038
commit af56d4bfeb
166 changed files with 22251 additions and 297 deletions
+6 -2
View File
@@ -2523,7 +2523,7 @@ bool idFileSystemLocal::UpdateGamePakChecksums( void ) {
}
}
}
#ifndef ID_ALLOW_TOOLS
// some sanity checks on the game code references
// make sure that at least the local OS got a pure reference
if ( !gamePakForOS[ BUILD_OS_ID ] ) {
@@ -2536,7 +2536,7 @@ bool idFileSystemLocal::UpdateGamePakChecksums( void ) {
common->Warning( "The current game code doesn't match pak files (net_serverAllowServerMod is off)" );
return false;
}
#endif
return true;
}
@@ -3011,6 +3011,10 @@ bool idFileSystemLocal::FileAllowedFromDir( const char *path ) {
l = strlen( path );
#ifdef ID_ALLOW_TOOLS
return true;
#endif
if ( !strcmp( path + l - 4, ".cfg" ) // for config files
|| !strcmp( path + l - 4, ".dat" ) // for journal files
|| !strcmp( path + l - 4, ".dll" ) // dynamic modules are handled a different way for pure