diff options
| author | Lioncash <mai.iam2048@gmail.com> | 2023-04-13 09:38:09 -0400 |
|---|---|---|
| committer | Lioncash <mai.iam2048@gmail.com> | 2023-04-13 10:19:28 -0400 |
| commit | e4caace6bb6213851b979cdd76f9f44ef6d9cd09 (patch) | |
| tree | ae5d6cbcfa21c4084a301f96de4f560570c73a8b /Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp | |
| parent | 5c03b8af88e80e9502dcb0b20e17d9debf2617b3 (diff) | |
Common/IniFile: Move interface into Common namespace
Gets this out of the global namespace and into the Common namespace
Diffstat (limited to 'Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp index d3fc411498..b94a544424 100644 --- a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp +++ b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp @@ -40,13 +40,14 @@ GeckoCodeWidget::GeckoCodeWidget(std::string game_id, std::string gametdb_id, u1 if (!m_game_id.empty()) { - IniFile game_ini_local; + Common::IniFile game_ini_local; // We don't use LoadLocalGameIni() here because user cheat codes that are installed via the UI // will always be stored in GS/${GAMEID}.ini game_ini_local.Load(File::GetUserPath(D_GAMESETTINGS_IDX) + m_game_id + ".ini"); - const IniFile game_ini_default = SConfig::LoadDefaultGameIni(m_game_id, m_game_revision); + const Common::IniFile game_ini_default = + SConfig::LoadDefaultGameIni(m_game_id, m_game_revision); m_gecko_codes = Gecko::LoadCodes(game_ini_default, game_ini_local); } @@ -245,7 +246,7 @@ void GeckoCodeWidget::SaveCodes() const auto ini_path = std::string(File::GetUserPath(D_GAMESETTINGS_IDX)).append(m_game_id).append(".ini"); - IniFile game_ini_local; + Common::IniFile game_ini_local; game_ini_local.Load(ini_path); Gecko::SaveCodes(game_ini_local, m_gecko_codes); game_ini_local.Save(ini_path); |
