From 0dd657edfc371f209a8834230a69dbb54db9cf45 Mon Sep 17 00:00:00 2001 From: Daniel Martin Date: Tue, 20 Oct 2026 10:33:05 +1000 Subject: [PATCH] ppsspp: exit with the exit app key instead of alt+f4 (fixes #15659) --- .../batocera-launch/batocera_launch/emulators/ppsspp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-src/batocera-launch/batocera_launch/emulators/ppsspp.py b/python-src/batocera-launch/batocera_launch/emulators/ppsspp.py index 334ec2d4d1b..f4dbe8fe80f 100644 --- a/python-src/batocera-launch/batocera_launch/emulators/ppsspp.py +++ b/python-src/batocera-launch/batocera_launch/emulators/ppsspp.py @@ -197,6 +197,7 @@ def _generate_controller_config(controls_ini: Path, controls_init: Path, control config.set(section, 'Next Slot', '1-136') config.set(section, 'Screenshot', '1-137') config.set(section, 'Pause', '1-139') + config.set(section, 'Exit App', '1-140') controls_ini.parent.mkdir(parents=True, exist_ok=True) with controls_ini.open('w+') as fp: @@ -213,7 +214,7 @@ def hotkeygen_context(self) -> HotkeysContext: return { 'name': 'ppsspp', 'keys': { - 'exit': ['KEY_LEFTALT', 'KEY_F4'], + 'exit': 'KEY_F10', 'menu': 'KEY_F9', 'pause': 'KEY_F9', 'rewind': 'KEY_F1', @@ -383,6 +384,8 @@ async def _write_config(self) -> None: ini_config.set('General', 'EnableCheats', str(self.config.get_bool('enable_cheats', False))) # Don't check for a new version ini_config.set('General', 'CheckForNewVersion', 'False') + # the exit hotkey uses Exit App, which otherwise asks to confirm after 5 minutes of unsaved play + ini_config.set('General', 'AskForExitConfirmationAfterSeconds', '0') # SaveState ini_config.set('General', 'StateSlot', self.config.get_str('state_slot', '0'))