mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
InputConfig: Show display message when game specific input profile is loaded; matching how cycling works
This commit is contained in:
parent
14482a72af
commit
e10abaed3e
@ -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"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user