summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-09-26 17:27:58 -0400
committerGitHub <noreply@github.com>2025-09-26 17:27:58 -0400
commit3b4fd0bc4f0b7c3abd970fce711b49717f37780e (patch)
treeb8b1d8fcd358a3ac30552ce8943c4da27696af07 /Source/Core/InputCommon
parenta7d61dd2a51932eb63e6d0c39111eabdb01699da (diff)
parent0401f4a8c3082fd905fca84422ff29e5176d1e63 (diff)
Merge pull request #13961 from Sam-Belliveau/sdl-gamepad-profile
Add SDL Gamepad Profile
Diffstat (limited to 'Source/Core/InputCommon')
-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, "");