From 0ab2c80575cc66703e05e5611d2b7748c8dac3fd Mon Sep 17 00:00:00 2001 From: Diana Atsuko Herring Date: Sun, 31 Mar 2024 00:19:33 -0500 Subject: [PATCH] Open first user after deleting one. Current behavior opens the DefaultUserId, however with the change to use a randomly generated ID for the first user there is not a user with that ID. Instead we open the first user in _profiles. --- src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountManager.cs b/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountManager.cs index d1774ccf4..28b0559de 100644 --- a/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountManager.cs +++ b/src/Ryujinx.HLE/HOS/Services/Account/Acc/AccountManager.cs @@ -187,7 +187,7 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc _profiles.Remove(userId.ToString(), out _); - OpenUser(DefaultUserId); + OpenUser(new UserId(_profiles.First().Key)); _accountSaveDataManager.Save(_profiles); }