diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-11-22 14:10:28 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-11-22 14:38:26 -0500 |
| commit | e8edc49bbec053e3ee08f6ffc8be39935c6fa6d1 (patch) | |
| tree | f355306567ea56c2d96819ad1fa01165620d9898 /Source/Core/InputCommon/InputProfile.cpp | |
| parent | bc449fb98f3b741f78d8881e2c02d588829aad74 (diff) | |
InputCommon: Make use of fmt where applicable
Continues the migration over to fmt
Diffstat (limited to 'Source/Core/InputCommon/InputProfile.cpp')
| -rw-r--r-- | Source/Core/InputCommon/InputProfile.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Source/Core/InputCommon/InputProfile.cpp b/Source/Core/InputCommon/InputProfile.cpp index 2fbdf39706..9037d79044 100644 --- a/Source/Core/InputCommon/InputProfile.cpp +++ b/Source/Core/InputCommon/InputProfile.cpp @@ -2,6 +2,13 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "InputCommon/InputProfile.h" + +#include <algorithm> +#include <iterator> + +#include <fmt/format.h> + #include "Common/FileSearch.h" #include "Common/FileUtil.h" #include "Common/StringUtil.h" @@ -13,10 +20,6 @@ #include "InputCommon/ControllerInterface/ControllerInterface.h" #include "InputCommon/InputConfig.h" -#include "InputCommon/InputProfile.h" - -#include <algorithm> -#include <iterator> namespace InputProfile { @@ -180,7 +183,7 @@ std::string ProfileCycler::GetWiimoteInputProfilesForGame(int controller_index) const IniFile::Section* const control_section = game_ini.GetOrCreateSection("Controls"); std::string result; - control_section->Get(StringFromFormat("WiimoteProfile%d", controller_index + 1), &result); + control_section->Get(fmt::format("WiimoteProfile{}", controller_index + 1), &result); return result; } |
