Removed calls to old text console based cheat menu in favor of Qt GUI cheat menu. Default hot key for opening the cheat menu is F1 and was crashing when trying to bring up text cheat console. Qt window does not have this issue. Fixes part of #332.
This commit is contained in:
parent
32e897479c
commit
86ffdcee3a
|
@ -25,6 +25,7 @@
|
|||
#include "Qt/fceuWrapper.h"
|
||||
#include "Qt/ConsoleWindow.h"
|
||||
#include "Qt/ConsoleUtilities.h"
|
||||
#include "Qt/CheatsConf.h"
|
||||
|
||||
#include "Qt/sdl.h"
|
||||
#include "Qt/sdl-video.h"
|
||||
|
@ -135,21 +136,6 @@ static void UpdateTopRider (void);
|
|||
|
||||
static uint32 JSreturn = 0;
|
||||
|
||||
/**
|
||||
* Configure cheat devices (game genie, etc.). Restarts the keyboard
|
||||
* and video subsystems.
|
||||
*/
|
||||
static void
|
||||
DoCheatSeq ()
|
||||
{
|
||||
SilenceSound (1);
|
||||
KillVideo ();
|
||||
|
||||
DoConsoleCheatConfig ();
|
||||
InitVideo (GameInfo);
|
||||
SilenceSound (0);
|
||||
}
|
||||
|
||||
#include "keyscan.h"
|
||||
static uint8 g_keyState[SDL_NUM_SCANCODES];
|
||||
static int keyModifier = 0;
|
||||
|
@ -672,7 +658,7 @@ static void KeyboardCommands (void)
|
|||
{
|
||||
if ( Hotkeys[HK_CHEAT_MENU].getRisingEdge() )
|
||||
{
|
||||
DoCheatSeq ();
|
||||
openCheatDialog( consoleWindow );
|
||||
}
|
||||
|
||||
// f5 (default) save key, hold shift to save movie
|
||||
|
|
Loading…
Reference in New Issue