mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp
synced 2026-05-23 06:54:33 -04:00
Prototype quicksave functionality, disabled for now
This commit is contained in:
@@ -210,6 +210,24 @@ void recomp::poll_inputs() {
|
||||
InputState.cur_controllers.push_back(controller);
|
||||
}
|
||||
}
|
||||
|
||||
// Quicksaving is disabled for now and will likely have more limited functionality
|
||||
// when restored, rather than allowing saving and loading at any point in time.
|
||||
#if 0
|
||||
if (InputState.keys) {
|
||||
static bool save_was_held = false;
|
||||
static bool load_was_held = false;
|
||||
bool save_is_held = InputState.keys[SDL_SCANCODE_F5] != 0;
|
||||
bool load_is_held = InputState.keys[SDL_SCANCODE_F7] != 0;
|
||||
if (save_is_held && !save_was_held) {
|
||||
recomp::quicksave_save();
|
||||
}
|
||||
else if (load_is_held && !load_was_held) {
|
||||
recomp::quicksave_load();
|
||||
}
|
||||
save_was_held = save_is_held;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
bool controller_button_state(int32_t input_id) {
|
||||
|
||||
Reference in New Issue
Block a user