From 5786f3922a2c71f9aa588f3fc6dce1e90cdeb6c5 Mon Sep 17 00:00:00 2001 From: "smasimar@gmail.com" Date: Thu, 5 Sep 2024 20:07:36 +0200 Subject: [PATCH] Added "SaveStateAndSelectNextSlot" hotkey for alternative save slot cycling functionality. --- pcsx2/Hotkeys.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pcsx2/Hotkeys.cpp b/pcsx2/Hotkeys.cpp index d35e536c3bc32..a6d96cded9f25 100644 --- a/pcsx2/Hotkeys.cpp +++ b/pcsx2/Hotkeys.cpp @@ -239,6 +239,14 @@ DEFINE_HOTKEY("LoadStateFromSlot", TRANSLATE_NOOP("Hotkeys", "Save States"), if (!pressed && VMManager::HasValidVM()) SaveStateSelectorUI::LoadCurrentSlot(); }) +DEFINE_HOTKEY("SaveStateAndSelectNextSlot", TRANSLATE_NOOP("Hotkeys", "Save States"), + TRANSLATE_NOOP("Hotkeys", "Save State and Select Next Slot"), [](s32 pressed) { + if (!pressed && VMManager::HasValidVM()) + { + SaveStateSelectorUI::SaveCurrentSlot(); + SaveStateSelectorUI::SelectNextSlot(false); + } + }) DEFINE_HOTKEY("SelectNextSlotAndSaveState", TRANSLATE_NOOP("Hotkeys", "Save States"), TRANSLATE_NOOP("Hotkeys", "Select Next Slot and Save State"), [](s32 pressed) { if (!pressed && VMManager::HasValidVM())