diff options
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r-- | engines/sci/sci.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index a8f130f674..11c86d8ed8 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -35,6 +35,8 @@ #include "sci/engine/state.h" #include "sci/engine/kernel.h" +#include "sci/gui32/gui32.h" + #include "sci/gfx/gfx_resource.h" #include "sci/gfx/gfx_tools.h" #include "sci/gfx/operations.h" @@ -44,7 +46,7 @@ namespace Sci { class GfxDriver; SciEngine::SciEngine(OSystem *syst, const SciGameDescription *desc) - : Engine(syst), _gameDescription(desc) { + : Engine(syst), _gameDescription(desc), _system(syst) { // Put your engine in a sane state, but do nothing big yet; // in particular, do not load data from files; rather, if you // need to do such things, do them from init(). @@ -152,6 +154,10 @@ Common::Error SciEngine::run() { GfxState gfx_state; _gamestate->gfx_state = &gfx_state; + // GUI change + //_gamestate->gui = new SciGUI(_system, _gamestate); // new + _gamestate->gui = new SciGUI32(_system, _gamestate); // old + // Assign default values to the config manager, in case settings are missing ConfMan.registerDefault("dither_mode", "0"); @@ -183,6 +189,8 @@ Common::Error SciEngine::run() { return Common::kUnknownError; } + _gamestate->gui->init(_kernel->usesOldGfxFunctions()); + printf("Emulating SCI version %s\n", getSciVersionDesc(getSciVersion()).c_str()); game_run(&_gamestate); // Run the game |