mirror of
https://github.com/dolphin-emu/dolphin
synced 2025-10-05 16:03:02 +02:00
Prevent profiles with no device specification from resetting device
This commit is contained in:
@@ -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, "");
|
||||
|
Reference in New Issue
Block a user