From 210aa774d554bb9818d79030bbc26b8eb2c500b2 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 13 Sep 2015 14:17:58 +0200 Subject: DolphinWX: Only read titles.txt once titles.txt is read into a map and passed to the GameListItem constructor, making game list scanning a bit more efficient. ISOPropreties's constructor is changed to take a GameListItem as an argument instead of creating one on its own, because ISOPropreties doesn't have the titles.txt map that the GameListItem constructor wants. --- Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp') diff --git a/Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp b/Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp index 5239a1817a..60c600702b 100644 --- a/Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp +++ b/Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp @@ -87,7 +87,7 @@ void CreateCodeDialog::PressOK(wxCommandEvent& ev) // pretty hacky - add the code to the gameini { - CISOProperties isoprops(SConfig::GetInstance().m_LastFilename, this); + CISOProperties isoprops(GameListItem(SConfig::GetInstance().m_LastFilename, std::unordered_map()), this); // add the code to the isoproperties arcode list arCodes->push_back(new_cheat); // save the gameini -- cgit v1.2.3