mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-06-04 06:55: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;
|
c->user_id = u ? u->user_id : ORBIS_USER_SERVICE_USER_ID_INVALID;
|
||||||
slot_taken[i] = true;
|
slot_taken[i] = true;
|
||||||
c->player_index = i;
|
c->player_index = i;
|
||||||
if (i != 0 || (i == 0 && Common::ElfInfo::Instance()
|
AddUserServiceEvent({OrbisUserServiceEventType::Login, c->user_id});
|
||||||
.GetPSFAttributes()
|
|
||||||
.support_initial_user_logout.Value() == true)) {
|
|
||||||
AddUserServiceEvent({OrbisUserServiceEventType::Login, c->user_id});
|
|
||||||
}
|
|
||||||
if (EmulatorSettings.IsMotionControlsEnabled()) {
|
if (EmulatorSettings.IsMotionControlsEnabled()) {
|
||||||
if (SDL_SetGamepadSensorEnabled(c->m_sdl_gamepad, SDL_SENSOR_GYRO, true)) {
|
if (SDL_SetGamepadSensorEnabled(c->m_sdl_gamepad, SDL_SENSOR_GYRO, true)) {
|
||||||
c->gyro_poll_rate =
|
c->gyro_poll_rate =
|
||||||
@ -318,11 +314,7 @@ void GameControllers::TryOpenSDLControllers(GameControllers& controllers) {
|
|||||||
if (controller_count == 0) {
|
if (controller_count == 0) {
|
||||||
auto u = UserManagement.GetUserByPlayerIndex(1);
|
auto u = UserManagement.GetUserByPlayerIndex(1);
|
||||||
controllers[0]->user_id = u->user_id;
|
controllers[0]->user_id = u->user_id;
|
||||||
if (Common::ElfInfo::Instance()
|
AddUserServiceEvent({OrbisUserServiceEventType::Login, controllers[0]->user_id});
|
||||||
.GetPSFAttributes()
|
|
||||||
.support_initial_user_logout.Value() == true) {
|
|
||||||
AddUserServiceEvent({OrbisUserServiceEventType::Login, controllers[0]->user_id});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SDL_free(new_joysticks);
|
SDL_free(new_joysticks);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user