mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-23 12:44:02 +00:00
_gui and _gui32 are now properly initialized
svn-id: r47687
This commit is contained in:
parent
6703576452
commit
99f59d858e
@ -167,12 +167,17 @@ Common::Error SciEngine::run() {
|
||||
return Common::kUnknownError;
|
||||
|
||||
#ifdef ENABLE_SCI32
|
||||
if (getSciVersion() >= SCI_VERSION_2)
|
||||
if (getSciVersion() >= SCI_VERSION_2) {
|
||||
_gamestate->_gui = 0;
|
||||
_gamestate->_gui32 = new SciGui32(_gamestate, screen, palette, cursor);
|
||||
else
|
||||
#endif
|
||||
} else {
|
||||
_gamestate->_gui = new SciGui(_gamestate, screen, palette, cursor, _audio);
|
||||
|
||||
_gamestate->_gui32 = 0;
|
||||
}
|
||||
#else
|
||||
_gamestate->_gui = new SciGui(_gamestate, screen, palette, cursor, _audio);
|
||||
_gamestate->_gui32 = 0;
|
||||
#endif
|
||||
|
||||
if (game_init(_gamestate)) { /* Initialize */
|
||||
warning("Game initialization failed: Aborting...");
|
||||
|
Loading…
x
Reference in New Issue
Block a user