Config: Move ToGameCubeRegion(), GetDirectoryForRegion(), and GetBootROMPath() to new config system namespace.

This commit is contained in:
Admiral H. Curtiss
2022-04-11 06:08:19 +02:00
parent 664663e8de
commit 2081e2f2a1
10 changed files with 72 additions and 78 deletions

View File

@ -1470,8 +1470,8 @@ bool NetPlayServer::StartGame()
const sf::Uint64 initial_rtc = GetInitialNetPlayRTC();
const std::string region = SConfig::GetDirectoryForRegion(
SConfig::ToGameCubeRegion(m_dialog->FindGameFile(m_selected_game_identifier)->GetRegion()));
const std::string region = Config::GetDirectoryForRegion(
Config::ToGameCubeRegion(m_dialog->FindGameFile(m_selected_game_identifier)->GetRegion()));
// sync GC SRAM with clients
if (!g_SRAM_netplay_initialized)
@ -1666,7 +1666,7 @@ bool NetPlayServer::SyncSaveData()
return true;
const std::string region =
SConfig::GetDirectoryForRegion(SConfig::ToGameCubeRegion(game->GetRegion()));
Config::GetDirectoryForRegion(Config::ToGameCubeRegion(game->GetRegion()));
for (ExpansionInterface::Slot slot : ExpansionInterface::MEMCARD_SLOTS)
{