MCPcopy Create free account
hub / github.com/bwapi/bwapi / loadAutoMenuData

Method loadAutoMenuData

bwapi/BWAPI/Source/BWAPI/GameMenu.cpp:20–28  ·  view source on GitHub ↗

------------------------------------------- LOAD AUTO MENU DATA ------------------------------------------

Source from the content-addressed store, hash-verified

18{
19 //------------------------------------------- LOAD AUTO MENU DATA ------------------------------------------
20 void GameImpl::loadAutoMenuData()
21 {
22 this->autoMenuManager.reloadConfig();
23
24 // Not related to the auto-menu, but it should be loaded every time auto menu data gets reloaded
25 this->seedOverride = LoadConfigInt("starcraft", "seed_override", std::numeric_limits<decltype(this->seedOverride)>::max());
26 this->speedOverride = LoadConfigInt("starcraft", "speed_override", std::numeric_limits<decltype(this->speedOverride)>::min());
27 this->wantDropPlayers = LoadConfigStringUCase("starcraft", "drop_players", "ON") == "ON";
28 }
29 //--------------------------------------------- GET LOBBY STUFF --------------------------------------------
30 Race GameImpl::getMenuRace(const std::string &sChosenRace)
31 {

Callers 1

initializeDataMethod · 0.95

Calls 3

LoadConfigIntFunction · 0.85
LoadConfigStringUCaseFunction · 0.85
reloadConfigMethod · 0.80

Tested by

no test coverage detected