Assert on attempting to login the same user more than once (#4416)

This commit is contained in:
kalaposfos13 2026-05-14 22:00:42 +02:00 committed by GitHub
parent b39d529324
commit a5885435d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,7 @@
#include <filesystem>
#include <iostream>
#include <common/assert.h>
#include <common/path_util.h>
#include "emulator_settings.h"
#include "libraries/system/userservice.h"
@ -200,9 +201,7 @@ void UserManager::LoginUser(User* u, s32 player_index) {
}
for (auto& logged_in_user : logged_in_users) {
if (logged_in_user == u) {
logged_in_user = nullptr;
}
ASSERT(logged_in_user != u);
}
u->logged_in = true;