mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-17 16:07:31 +00:00
Prevent profiles with no device specification from resetting device
This commit is contained in:
parent
79614956f3
commit
52071f3943
@ -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, "");
|
||||||
|
Loading…
Reference in New Issue
Block a user