From b296b6b69d1c7e2eef152eed4d419d45e6bef6fc Mon Sep 17 00:00:00 2001 From: kalaposfos13 <153381648+kalaposfos13@users.noreply.github.com> Date: Sat, 7 Mar 2026 09:05:00 +0100 Subject: [PATCH] implement support_initial_user_logout attribute handling --- src/input/controller.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/input/controller.cpp b/src/input/controller.cpp index cf72f6dfd..c7c84ee37 100644 --- a/src/input/controller.cpp +++ b/src/input/controller.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include "common/logging/log.h" #include "controller.h" @@ -280,7 +281,11 @@ void GameControllers::TryOpenSDLControllers(GameControllers& controllers) { c->user_id = i + 1; slot_taken[i] = true; c->player_index = i; - AddUserServiceEvent({OrbisUserServiceEventType::Login, i + 1}); + if (i != 0 || (i == 0 && Common::ElfInfo::Instance() + .GetPSFAttributes() + .support_initial_user_logout.Value() == true)) { + AddUserServiceEvent({OrbisUserServiceEventType::Login, i + 1}); + } if (EmulatorSettings.IsMotionControlsEnabled()) { if (SDL_SetGamepadSensorEnabled(c->m_sdl_gamepad, SDL_SENSOR_GYRO, true)) { c->gyro_poll_rate =