Oops, forgot to load the cheat database when starting in ROM launcher mode.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@898 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2005-11-28 15:05:43 +00:00
parent 2be35dd96f
commit 092e927cd1
1 changed files with 6 additions and 6 deletions

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of // See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES. // this file, and for a DISCLAIMER OF ALL WARRANTIES.
// //
// $Id: mainSDL.cxx,v 1.56 2005-11-27 15:48:05 stephena Exp $ // $Id: mainSDL.cxx,v 1.57 2005-11-28 15:05:43 stephena Exp $
//============================================================================ //============================================================================
#include <fstream> #include <fstream>
@ -198,6 +198,11 @@ int main(int argc, char* argv[])
// Setup the SDL joysticks (must be done after FrameBuffer is created) // Setup the SDL joysticks (must be done after FrameBuffer is created)
theOSystem->eventHandler().setupJoysticks(); theOSystem->eventHandler().setupJoysticks();
#ifdef CHEATCODE_SUPPORT
// Create internal cheat database for all ROMs
theOSystem->cheat().loadCheatDatabase();
#endif
//// Main loop //// //// Main loop ////
// First we check if a ROM is specified on the commandline. If so, and if // First we check if a ROM is specified on the commandline. If so, and if
// the ROM actually exists, use it to create a new console. // the ROM actually exists, use it to create a new console.
@ -208,11 +213,6 @@ int main(int argc, char* argv[])
theOSystem->createLauncher(); theOSystem->createLauncher();
else else
{ {
#ifdef CHEATCODE_SUPPORT
// Create internal cheat database for all ROMs
theOSystem->cheat().loadCheatDatabase();
#endif
theOSystem->createConsole(romfile); theOSystem->createConsole(romfile);
if(theOSystem->settings().getBool("holdreset")) if(theOSystem->settings().getBool("holdreset"))