From e10abaed3e4aa48379dc1a052d2d9a2851e8464d Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sat, 28 Apr 2018 13:07:26 -0500 Subject: [PATCH] InputConfig: Show display message when game specific input profile is loaded; matching how cycling works --- Source/Core/InputCommon/InputConfig.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Core/InputCommon/InputConfig.cpp b/Source/Core/InputCommon/InputConfig.cpp index 9ca3e1708d..d929356d3c 100644 --- a/Source/Core/InputCommon/InputConfig.cpp +++ b/Source/Core/InputCommon/InputConfig.cpp @@ -9,6 +9,7 @@ #include "Common/MsgHandler.h" #include "Common/StringUtil.h" #include "Core/ConfigManager.h" +#include "Core/Core.h" #include "Core/HW/Wiimote.h" #include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h" #include "InputCommon/ControllerEmu/ControllerEmu.h" @@ -84,6 +85,12 @@ bool InputConfig::LoadConfig(bool isGC) // Load settings from ini if (useProfile[n]) { + std::string base; + SplitPath(profile[n], nullptr, &base, nullptr); + Core::DisplayMessage("Loading game specific input profile '" + base + + "' for device '" + controller->GetName() + "'", + 6000); + IniFile profile_ini; profile_ini.Load(profile[n]); controller->LoadConfig(profile_ini.GetOrCreateSection("Profile"));