Permalink
Browse files

InputConfig: Show display message when game specific input profile is…

… loaded; matching how cycling works
  • Loading branch information...
iwubcode committed Apr 28, 2018
1 parent 14482a7 commit e10abaed3e4aa48379dc1a052d2d9a2851e8464d
Showing with 7 additions and 0 deletions.
  1. +7 −0 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"));

0 comments on commit e10abae

Please sign in to comment.