aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/init.cpp')
-rw-r--r--engines/gob/init.cpp41
1 files changed, 1 insertions, 40 deletions
diff --git a/engines/gob/init.cpp b/engines/gob/init.cpp
index a5ba883590..1bfd0aadb5 100644
--- a/engines/gob/init.cpp
+++ b/engines/gob/init.cpp
@@ -64,46 +64,6 @@ void Init::findBestCfg(void) {
_vm->_global->_soundFlags = 0;
}
-void Init::soundVideo(int32 smallHeap, int16 flag) {
- if (_vm->_global->_videoMode != 0x13 && _vm->_global->_videoMode != 0)
- error("soundVideo: Video mode 0x%x is not supported!",
- _vm->_global->_videoMode);
-
- //if ((flag & 4) == 0)
- // _vm->_video->findVideo();
-
- _vm->_global->_mousePresent = 1;
-
- _vm->_global->_inVM = 0;
-
- _vm->_global->_presentSound = 0; // FIXME: sound is not supported yet
-
- _vm->_global->_sprAllocated = 0;
- _vm->_gtimer->enableTimer();
-
- // _vm->_snd->setResetTimerFlag(debugFlag); // TODO
-
- if (_vm->_global->_videoMode == 0x13)
- _vm->_global->_colorCount = 256;
-
- _vm->_global->_pPaletteDesc = &_vm->_global->_paletteStruct;
- _vm->_global->_pPaletteDesc->vgaPal = _vm->_draw->_vgaPalette;
- _vm->_global->_pPaletteDesc->unused1 = _vm->_global->_unusedPalette1;
- _vm->_global->_pPaletteDesc->unused2 = _vm->_global->_unusedPalette2;
- _vm->_global->_pPrimarySurfDesc = &_vm->_global->_primarySurfDesc;
-
- if (_vm->_global->_videoMode != 0)
- _vm->_video->initSurfDesc(_vm->_global->_videoMode, 320, 200, PRIMARY_SURFACE);
-
- if (_vm->_global->_soundFlags & MIDI_FLAG) {
- _vm->_global->_soundFlags &= _vm->_global->_presentSound;
- if (_vm->_global->_presentSound & ADLIB_FLAG)
- _vm->_global->_soundFlags |= MIDI_FLAG;
- } else {
- _vm->_global->_soundFlags &= _vm->_global->_presentSound;
- }
-}
-
void Init::cleanup(void) {
if (_vm->_global->_debugFlag == 0)
_vm->_gtimer->disableTimer();
@@ -154,6 +114,7 @@ memBlocks = word ptr -2*/
_vm->_global->_disableVideoCfg = 0x11;
_vm->_global->_disableMouseCfg = 0x15;
+
soundVideo(1000, 1);
handle2 = _vm->_dataio->openData("intro.stk");