-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add selectable savestates #550
base: master
Are you sure you want to change the base?
Add selectable savestates #550
Conversation
a494b85
to
cd52c81
Compare
Force pushed with no changes to rerun checks, as they previously timed out and failed for unknown reasons. |
src/program/KeyMapping.h
Outdated
@@ -77,6 +79,8 @@ typedef int HotKeyType; enum | |||
HOTKEY_LOADBRANCH8, | |||
HOTKEY_LOADBRANCH9, | |||
HOTKEY_LOADBRANCH_BACKTRACK, | |||
HOTKEY_SELECTSTATE_NEXT, | |||
HOTKEY_SELECTSTATE_PREVIOUS, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We would want to append the extra hotkeys at the end, so that it does not shift existing hotkey mappings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for noticing - I did not realize this. Maybe these enum values could be explicitly numbered to make that more apparant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, just saw there is a comment about this at the top.
…wards compatibility
Add the concept of a "selected savestate", along with 4 hotkeys: two for incrementing and decrementing the selected slot, and two for saving and loading the selected state.
This is a feature present in the vast majority of rerecording console emulators, and, although I can't speak for others, it is my personally preferred method of managing savestates.