summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp
diff options
context:
space:
mode:
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, "");