mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-02 19:08:03 -06:00
Revert conditionally omitting the initial user login event until the exact trigger requirements are found
This commit is contained in:
parent
54efbcecc5
commit
d0580a11fa
@ -286,11 +286,7 @@ void GameControllers::TryOpenSDLControllers(GameControllers& controllers) {
|
||||
c->user_id = u ? u->user_id : ORBIS_USER_SERVICE_USER_ID_INVALID;
|
||||
slot_taken[i] = true;
|
||||
c->player_index = i;
|
||||
if (i != 0 || (i == 0 && Common::ElfInfo::Instance()
|
||||
.GetPSFAttributes()
|
||||
.support_initial_user_logout.Value() == true)) {
|
||||
AddUserServiceEvent({OrbisUserServiceEventType::Login, c->user_id});
|
||||
}
|
||||
AddUserServiceEvent({OrbisUserServiceEventType::Login, c->user_id});
|
||||
if (EmulatorSettings.IsMotionControlsEnabled()) {
|
||||
if (SDL_SetGamepadSensorEnabled(c->m_sdl_gamepad, SDL_SENSOR_GYRO, true)) {
|
||||
c->gyro_poll_rate =
|
||||
@ -318,11 +314,7 @@ void GameControllers::TryOpenSDLControllers(GameControllers& controllers) {
|
||||
if (controller_count == 0) {
|
||||
auto u = UserManagement.GetUserByPlayerIndex(1);
|
||||
controllers[0]->user_id = u->user_id;
|
||||
if (Common::ElfInfo::Instance()
|
||||
.GetPSFAttributes()
|
||||
.support_initial_user_logout.Value() == true) {
|
||||
AddUserServiceEvent({OrbisUserServiceEventType::Login, controllers[0]->user_id});
|
||||
}
|
||||
AddUserServiceEvent({OrbisUserServiceEventType::Login, controllers[0]->user_id});
|
||||
}
|
||||
}
|
||||
SDL_free(new_joysticks);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user