diff options
| author | JosJuice <josjuice@gmail.com> | 2015-09-13 14:17:58 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2015-09-13 14:17:58 +0200 |
| commit | 210aa774d554bb9818d79030bbc26b8eb2c500b2 (patch) | |
| tree | ba6b773b5b8111433455a31a8e0b8a883bcdc07d /Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp | |
| parent | 10aafff5b94864c150f4f4f45d4e106afc795342 (diff) | |
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.
Diffstat (limited to 'Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Cheats/CreateCodeDialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::string, std::string>()), this); // add the code to the isoproperties arcode list arCodes->push_back(new_cheat); // save the gameini |
