summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp
diff options
context:
space:
mode:
authorSam Belliveau <sam.belliveau@gmail.com>2025-09-24 21:38:02 -0400
committerSam Belliveau <sam.belliveau@gmail.com>2025-09-24 21:38:02 -0400
commit52071f39432e9ecdbc6be9ab1bb36b0008456495 (patch)
tree361237f20d905cb263d21886165a5424a4766000 /Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp
parent79614956f39fc1f6d47ff3fcf6484ef19f4e1ae4 (diff)
Prevent profiles with no device specification from resetting device
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp
index 2d299981db..ce0105b90f 100644
--- a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp
+++ b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp
@@ -115,7 +115,7 @@ void EmulatedController::LoadConfig(Common::IniFile::Section* sec)
const auto lock = EmulatedController::GetStateLock();
std::string defdev;
- if (sec->Get("Device", &defdev, ""))
+ if (sec->Get("Device", &defdev, "") && !defdev.empty())
SetDefaultDevice(defdev);
LoadGroupsConfig(sec, "");