Fixed compile when --disable-cheats is passed to configure

This commit is contained in:
Philip James 2017-05-17 20:31:23 -07:00 committed by sa666666
parent b2c8c3ff81
commit 6ff2095a9f
2 changed files with 8 additions and 0 deletions

View File

@ -18,7 +18,9 @@
#ifndef OSYSTEM_HXX #ifndef OSYSTEM_HXX
#define OSYSTEM_HXX #define OSYSTEM_HXX
#ifdef CHEATCODE_SUPPORT
class CheatManager; class CheatManager;
#endif
class CommandMenu; class CommandMenu;
class Console; class Console;
class Debugger; class Debugger;
@ -462,8 +464,10 @@ class OSystem
unique_ptr<Debugger> myDebugger; unique_ptr<Debugger> myDebugger;
#endif #endif
#ifdef CHEATCODE_SUPPORT
// Pointer to the CheatManager object // Pointer to the CheatManager object
unique_ptr<CheatManager> myCheatManager; unique_ptr<CheatManager> myCheatManager;
#endif
// Pointer to the StateManager object // Pointer to the StateManager object
unique_ptr<StateManager> myStateManager; unique_ptr<StateManager> myStateManager;

View File

@ -32,7 +32,9 @@ class OSystem;
#include "ConfigPathDialog.hxx" #include "ConfigPathDialog.hxx"
#include "RomAuditDialog.hxx" #include "RomAuditDialog.hxx"
#include "GameInfoDialog.hxx" #include "GameInfoDialog.hxx"
#ifdef CHEATCODE_SUPPORT
#include "CheatCodeDialog.hxx" #include "CheatCodeDialog.hxx"
#endif
#include "HelpDialog.hxx" #include "HelpDialog.hxx"
#include "AboutDialog.hxx" #include "AboutDialog.hxx"
#include "LoggerDialog.hxx" #include "LoggerDialog.hxx"
@ -58,7 +60,9 @@ class OptionsDialog : public Dialog
unique_ptr<ConfigPathDialog> myConfigPathDialog; unique_ptr<ConfigPathDialog> myConfigPathDialog;
unique_ptr<RomAuditDialog> myRomAuditDialog; unique_ptr<RomAuditDialog> myRomAuditDialog;
unique_ptr<GameInfoDialog> myGameInfoDialog; unique_ptr<GameInfoDialog> myGameInfoDialog;
#ifdef CHEATCODE_SUPPORT
unique_ptr<CheatCodeDialog> myCheatCodeDialog; unique_ptr<CheatCodeDialog> myCheatCodeDialog;
#endif
unique_ptr<LoggerDialog> myLoggerDialog; unique_ptr<LoggerDialog> myLoggerDialog;
unique_ptr<HelpDialog> myHelpDialog; unique_ptr<HelpDialog> myHelpDialog;
unique_ptr<AboutDialog> myAboutDialog; unique_ptr<AboutDialog> myAboutDialog;