Skip to content
Browse files

DolphinQt/Config/ARCodeWidget: Deduplicate ini path

We can just store this to a const local and use it to avoid doing the
same work twice.
  • Loading branch information...
lioncash committed Jul 31, 2019
1 parent c70da39 commit 0d406f2bdcf2c403460dd78d9d31164d838af843
Showing with 5 additions and 3 deletions.
  1. +5 −3 Source/Core/DolphinQt/Config/ARCodeWidget.cpp
@@ -168,11 +168,13 @@ void ARCodeWidget::UpdateList()

void ARCodeWidget::SaveCodes()
const auto ini_path =

IniFile game_ini_local;
game_ini_local.Load(File::GetUserPath(D_GAMESETTINGS_IDX) + m_game_id + ".ini");
ActionReplay::SaveCodes(&game_ini_local, m_ar_codes);

game_ini_local.Save(File::GetUserPath(D_GAMESETTINGS_IDX) + m_game_id + ".ini");

void ARCodeWidget::AddCode(ActionReplay::ARCode code)

0 comments on commit 0d406f2

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