Skip to content

Commit

Permalink
add fastforward toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfloogle committed Dec 6, 2023
1 parent c03ba4c commit 3d1f80b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/vb_gui.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ int options_maxcycles(void);
int options_frameskip(void);
int options_debug(void);
int options_sound(void);
int options_fastforward(void);
int options_input(void);
int options_saveoptions(void);
int emulation_resume(void);
Expand Down
9 changes: 9 additions & 0 deletions source/common/vb_gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ menu_item_t options_menu_items[] = {
{"Frameskip", options_frameskip, NULL, 0, NULL},
{"Toggle debug", options_debug, NULL, 0, NULL},
{"Toggle sound", options_sound, NULL, 0, NULL},
{"Toggle fastforward", options_fastforward, NULL, 0, NULL},
{"Input", options_input, NULL, 0, NULL},
};

Expand Down Expand Up @@ -277,6 +278,14 @@ int options_sound(void) {
return D_OK;
}

int options_fastforward(void) {
consoleClear();
tVBOpt.FASTFORWARD = !tVBOpt.FASTFORWARD;
printf("Fastforward %s\n", tVBOpt.FASTFORWARD ? "enabled" : "disabled");
waitForInput();
return D_OK;
}

int options_input(void) {
// TODO: Implement me!
GUI_STUB();
Expand Down

0 comments on commit 3d1f80b

Please sign in to comment.