Prevent profiles with no device specification from resetting device

This commit is contained in:
Sam Belliveau
2025-09-24 21:38:02 -04:00
parent 79614956f3
commit 52071f3943

View File

@@ -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, "");