From b45d30acf8e4ed1b44543f2287a5e3f57d4621e9 Mon Sep 17 00:00:00 2001 From: Ac_K Date: Sun, 20 Mar 2022 17:25:29 +0100 Subject: [PATCH] oslc: Fix condition in GetSaveDataBackupSetting (#3208) * 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 --- Ryujinx.HLE/HOS/Services/Olsc/IOlscServiceForApplication.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. }