From f42b2ed59d4a64e2c975dab92580dd18df5f5f7d Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Mon, 20 Jan 2025 13:33:59 -0600 Subject: [PATCH] misc: chore: more correct last used user checking --- .../HOS/Services/Account/Acc/AccountSaveDataManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountSaveDataManager.cs b/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountSaveDataManager.cs index aa57a0310..6fdfe1398 100644 --- a/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountSaveDataManager.cs +++ b/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountSaveDataManager.cs @@ -56,7 +56,7 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc ProfilesJson profilesJson = JsonHelper.DeserializeFromFile(_profilesJsonPath, _serializerContext.ProfilesJson); return profilesJson.Profiles - .FindFirst(profile => profile.AccountState == AccountState.Open) + .FindFirst(profile => profile.UserId == profilesJson.LastOpened) .Convert(profileJson => new UserProfile(new UserId(profileJson.UserId), profileJson.Name, profileJson.Image, profileJson.LastModifiedTimestamp)); }