Skip to content

Commit

Permalink
Added "SaveStateAndSelectNextSlot" hotkey for alternative save slot c…
Browse files Browse the repository at this point in the history
…ycling functionality.
  • Loading branch information
smasimar committed Sep 9, 2024
1 parent b7054c0 commit 5786f39
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pcsx2/Hotkeys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 5786f39

Please sign in to comment.