summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/GameList/GameFile.cpp
diff options
context:
space:
mode:
authorMarkus Wick <markus+github@selfnet.de>2015-02-21 15:47:57 +0100
committerMarkus Wick <markus+github@selfnet.de>2015-02-21 15:47:57 +0100
commit95c48b2be70c4a6a2f7a187d74f72103d21850dc (patch)
tree8bac905973cc46316e0166be885b4a68a4980096 /Source/Core/DolphinQt/GameList/GameFile.cpp
parent6bbf77450714df5fa2a379e20e483905ce8f3889 (diff)
parentb85a4ced9fd34b4220f25c1cf9cf3758f19e405a (diff)
Merge pull request #2018 from JosJuice/gameini-region-wildcard
Support game INIs that match all regions
Diffstat (limited to 'Source/Core/DolphinQt/GameList/GameFile.cpp')
-rw-r--r--Source/Core/DolphinQt/GameList/GameFile.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/GameList/GameFile.cpp b/Source/Core/DolphinQt/GameList/GameFile.cpp
index 141ce73304..b5487793a2 100644
--- a/Source/Core/DolphinQt/GameList/GameFile.cpp
+++ b/Source/Core/DolphinQt/GameList/GameFile.cpp
@@ -126,10 +126,7 @@ GameFile::GameFile(const QString& fileName)
if (m_valid)
{
- IniFile ini;
- ini.Load(File::GetSysDirectory() + GAMESETTINGS_DIR DIR_SEP + m_unique_id.toStdString() + ".ini");
- ini.Load(File::GetUserPath(D_GAMESETTINGS_IDX) + m_unique_id.toStdString() + ".ini", true);
-
+ IniFile ini = SCoreStartupParameter::LoadGameIni(m_unique_id.toStdString(), m_revision);
std::string issues_temp;
ini.GetIfExists("EmuState", "EmulationStateId", &m_emu_state);
ini.GetIfExists("EmuState", "EmulationIssues", &issues_temp);