From 14263ec6dd209dc2ca7be5c1d69b7882c27780e0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 31 Jul 2019 09:18:37 -0400 Subject: [PATCH] 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. --- Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp index 6ed31fe0fd..12bf0dd7c9 100644 --- a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp +++ b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp @@ -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();