mirror of
https://github.com/dolphin-emu/dolphin
synced 2025-10-06 00:13:03 +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();
|
const auto lock = EmulatedController::GetStateLock();
|
||||||
|
|
||||||
std::string defdev;
|
std::string defdev;
|
||||||
if (sec->Get("Device", &defdev, ""))
|
if (sec->Get("Device", &defdev, "") && !defdev.empty())
|
||||||
SetDefaultDevice(defdev);
|
SetDefaultDevice(defdev);
|
||||||
|
|
||||||
LoadGroupsConfig(sec, "");
|
LoadGroupsConfig(sec, "");
|
||||||
|
Reference in New Issue
Block a user