diff options
author | Ac_K <Acoustik666@gmail.com> | 2022-03-20 17:25:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-20 13:25:29 -0300 |
commit | b45d30acf8e4ed1b44543f2287a5e3f57d4621e9 (patch) | |
tree | ab82e24ca48a85e77cce65eea618d44b21026e3d | |
parent | df70442c46e7ee133b1fb79dc23ddd134e618085 (diff) |
oslc: Fix condition in GetSaveDataBackupSetting (#3208)1.1.78
* oslc: Fix condition in GetSaveDataBackupSetting
This PR fixes a condition previously implemented in #3190 where ACNH can't be booted without an existing savedata.
Closes #3206
* Addresses gdkchan feedback
-rw-r--r-- | Ryujinx.HLE/HOS/Services/Olsc/IOlscServiceForApplication.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Olsc/IOlscServiceForApplication.cs b/Ryujinx.HLE/HOS/Services/Olsc/IOlscServiceForApplication.cs index c70134c5..013e9064 100644 --- a/Ryujinx.HLE/HOS/Services/Olsc/IOlscServiceForApplication.cs +++ b/Ryujinx.HLE/HOS/Services/Olsc/IOlscServiceForApplication.cs @@ -45,7 +45,7 @@ namespace Ryujinx.HLE.HOS.Services.Olsc return ResultCode.NullArgument; } - if (_saveDataBackupSettingDatabase[userId]) + if (_saveDataBackupSettingDatabase.TryGetValue(userId, out bool enabled) && enabled) { context.ResponseData.Write((byte)1); // TODO: Determine value. } |