Compare commits

..

1 Commits

Author SHA1 Message Date
Ac_K
b45d30acf8 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
2022-03-20 13:25:29 -03:00

View File

@@ -45,7 +45,7 @@ namespace Ryujinx.HLE.HOS.Services.Olsc
return ResultCode.NullArgument; return ResultCode.NullArgument;
} }
if (_saveDataBackupSettingDatabase[userId]) if (_saveDataBackupSettingDatabase.TryGetValue(userId, out bool enabled) && enabled)
{ {
context.ResponseData.Write((byte)1); // TODO: Determine value. context.ResponseData.Write((byte)1); // TODO: Determine value.
} }