From 2886f825aa2089606c849468e74829cfe0166bd2 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 d35e536c3b..a6d96cded9 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())