Skip to content
Browse files

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.
  • Loading branch information...
lioncash committed Jul 31, 2019
1 parent 6002529 commit 14263ec6dd209dc2ca7be5c1d69b7882c27780e0
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);


0 comments on commit 14263ec

Please sign in to comment.
You can’t perform that action at this time.