1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-21 06:22:02 +00:00

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
This commit is contained in:
Ac_K 2022-03-20 17:25:29 +01:00 committed by GitHub
parent df70442c46
commit b45d30acf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.
}