cfg: reworked map-specific configs, so they are now located in yapb/conf/maps/*map*.cfg

cmd: fixed handling "yb" & "yapb" command prefixes.
This commit is contained in:
dmitry 2020-06-15 11:28:42 +03:00 committed by jeefo
commit c74d8e91e4
14 changed files with 797 additions and 755 deletions

View file

@ -309,10 +309,10 @@ CR_EXPORT int GetEntityAPI (gamefuncs_t *table, int) {
// execute main config
conf.loadMainConfig ();
if (File::exists (strings.format ("%s/maps/%s_%s.cfg", game.getModName (), game.getMapName (), product.folder))) {
game.serverCommand ("exec maps/%s_%s.cfg", game.getMapName (), product.folder);
game.print ("Executing Map-Specific config file");
}
// load map-specific config
conf.loadMapSpecificConfig ();
// initialize quota management
bots.initQuota ();
if (game.is (GameFlags::Metamod)) {