Skip to content
Browse files

DolphinQt/Config/ARCodeWidget: Call LoadDefaultGameIni() directly

This is a static function, so we don't need to go through the instance
of SConfig in order to call it.
  • Loading branch information...
lioncash committed Jul 31, 2019
1 parent 4d8d2ac commit e08a76f9e2961d45de97838e220e3497ee67094d
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Core/DolphinQt/Config/ARCodeWidget.cpp
@@ -36,7 +36,7 @@ ARCodeWidget::ARCodeWidget(const UICommon::GameFile& game, bool restart_required
// 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_ar_codes = ActionReplay::LoadCodes(game_ini_default, game_ini_local);


0 comments on commit e08a76f

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