Skip to content

Commit

Permalink
Fixed potential crash when using hidden shortcut keys
Browse files Browse the repository at this point in the history
Fixed potential crash when using hidden combination shortcut keys, and disabled those hidden combination shortcut keys -- because they pose danger in people overwriting their saves or losing their current game progress with a quick load while mashing buttons, without meaning to, accidentally.
  • Loading branch information
Rezzy-dev authored Jan 23, 2022
1 parent 6507466 commit 49e9175
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/drivers/dingux-sdl/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ static int resetkey(int sdlk_code)
{
Uint8 *keystate = SDL_GetKeyState(NULL);
keystate[sdlk_code] = 0;
return 0;
}

static int g_fkbEnabled = 0;
Expand Down Expand Up @@ -308,6 +309,7 @@ static void KeyboardCommands() {
}

// R shift + combokeys
/*
if(ispressed(DINGOO_R)) {
extern int g_slot; // import from gui.cpp
void save_preview(); // import from gui.cpp
Expand Down Expand Up @@ -358,6 +360,7 @@ static void KeyboardCommands() {
resetkey(DINGOO_START);
}
}
*/

/*
// Toggle Movie auto-backup
Expand Down

0 comments on commit 49e9175

Please sign in to comment.