Added "SaveStateAndSelectNextSlot" hotkey for alternative save slot cycling functionality.

This commit is contained in:
smasimar@gmail.com 2024-09-05 20:07:36 +02:00 committed by Ty
parent 22c9b70ca3
commit 2886f825aa
1 changed files with 8 additions and 0 deletions

View File

@ -239,6 +239,14 @@ DEFINE_HOTKEY("LoadStateFromSlot", TRANSLATE_NOOP("Hotkeys", "Save States"),
if (!pressed && VMManager::HasValidVM()) if (!pressed && VMManager::HasValidVM())
SaveStateSelectorUI::LoadCurrentSlot(); 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"), DEFINE_HOTKEY("SelectNextSlotAndSaveState", TRANSLATE_NOOP("Hotkeys", "Save States"),
TRANSLATE_NOOP("Hotkeys", "Select Next Slot and Save State"), [](s32 pressed) { TRANSLATE_NOOP("Hotkeys", "Select Next Slot and Save State"), [](s32 pressed) {
if (!pressed && VMManager::HasValidVM()) if (!pressed && VMManager::HasValidVM())