DolphinQt/Config/GeckoCodeWidget: Call LoadDefaultGameIni() directly

This is a static class function, so we don't need to go through the
SConfig instance in order to call it.
This commit is contained in:
Lioncash 2019-07-31 09:18:37 -04:00
parent 6002529ece
commit 14263ec6dd
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ GeckoCodeWidget::GeckoCodeWidget(const UICommon::GameFile& game, bool restart_re
// will always be stored in GS/${GAMEID}.ini
game_ini_local.Load(File::GetUserPath(D_GAMESETTINGS_IDX) + m_game_id + ".ini");
IniFile game_ini_default = SConfig::GetInstance().LoadDefaultGameIni(m_game_id, m_game_revision);
const IniFile game_ini_default = SConfig::LoadDefaultGameIni(m_game_id, m_game_revision);
m_gecko_codes = Gecko::LoadCodes(game_ini_default, game_ini_local);
UpdateList();