From e8edc49bbec053e3ee08f6ffc8be39935c6fa6d1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 22 Nov 2019 14:10:28 -0500 Subject: InputCommon: Make use of fmt where applicable Continues the migration over to fmt --- Source/Core/InputCommon/InputProfile.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Source/Core/InputCommon/InputProfile.cpp') 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 +#include + +#include + #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 -#include 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; } -- cgit v1.2.3