From 52071f39432e9ecdbc6be9ab1bb36b0008456495 Mon Sep 17 00:00:00 2001 From: Sam Belliveau Date: Wed, 24 Sep 2025 21:38:02 -0400 Subject: [PATCH] Prevent profiles with no device specification from resetting device --- Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.cpp index 2d299981db0..ce0105b90fd 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, "");