Prototype quicksave functionality, disabled for now

This commit is contained in:
Mr-Wiseguy
2024-01-13 01:39:08 -05:00
parent a25f967094
commit ecfe2381b0
12 changed files with 420 additions and 3 deletions
+18
View File
@@ -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) {