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/InputCommon/InputProfile.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/InputCommon/InputProfile.cpp')
| -rw-r--r-- | Source/Core/InputCommon/InputProfile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/InputProfile.cpp b/Source/Core/InputCommon/InputProfile.cpp index 492b45975e..81d04cf75a 100644 --- a/Source/Core/InputCommon/InputProfile.cpp +++ b/Source/Core/InputCommon/InputProfile.cpp @@ -78,7 +78,7 @@ void ProfileCycler::UpdateToProfile(const std::string& profile_filename, std::string base; SplitPath(profile_filename, nullptr, &base, nullptr); - IniFile ini_file; + Common::IniFile ini_file; if (ini_file.Load(profile_filename)) { Core::DisplayMessage("Loading input profile '" + base + "' for device '" + @@ -180,8 +180,8 @@ void ProfileCycler::CycleProfileForGame(CycleDirection cycle_direction, std::string ProfileCycler::GetWiimoteInputProfilesForGame(int controller_index) { - IniFile game_ini = SConfig::GetInstance().LoadGameIni(); - const IniFile::Section* const control_section = game_ini.GetOrCreateSection("Controls"); + Common::IniFile game_ini = SConfig::GetInstance().LoadGameIni(); + const auto* const control_section = game_ini.GetOrCreateSection("Controls"); std::string result; control_section->Get(fmt::format("WiimoteProfile{}", controller_index + 1), &result); |
