diff options
author | Eugene Sandulenko | 2004-11-24 00:14:21 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-11-24 00:14:21 +0000 |
commit | 31e434dcf1e46510606efa3025c24c17ace379c6 (patch) | |
tree | addc1c7b6b9b2489eb9aca49e21ee0c729671adb /saga/saga.cpp | |
parent | 6414ec92a2a3509946ae4ec35a3a77e76ad152df (diff) | |
download | scummvm-rg350-31e434dcf1e46510606efa3025c24c17ace379c6.tar.gz scummvm-rg350-31e434dcf1e46510606efa3025c24c17ace379c6.tar.bz2 scummvm-rg350-31e434dcf1e46510606efa3025c24c17ace379c6.zip |
Fix a`ll engines. They work, though current fix is just temporary.
There are plans to add some brains to GameDetector class, which will let us
avoid passing detector to init() method.
svn-id: r15873
Diffstat (limited to 'saga/saga.cpp')
-rw-r--r-- | saga/saga.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/saga/saga.cpp b/saga/saga.cpp index 236ed78ae2..b71c1313d1 100644 --- a/saga/saga.cpp +++ b/saga/saga.cpp @@ -124,7 +124,7 @@ void SagaEngine::errorString(const char *buf1, char *buf2) { strcpy(buf2, buf1); } -int SagaEngine::init() { +int SagaEngine::init(GameDetector &detector) { _soundEnabled = 1; _musicEnabled = 1; @@ -183,7 +183,7 @@ int SagaEngine::init() { // Initialize graphics GAME_DISPLAYINFO disp_info; GAME_GetDisplayInfo(&disp_info); - _gfx = new Gfx(_system, disp_info.logical_w, disp_info.logical_h); + _gfx = new Gfx(_system, disp_info.logical_w, disp_info.logical_h, detector); // Graphics should be initialized before music int midiDriver = GameDetector::detectMusicDriver(MDT_NATIVE | MDT_ADLIB | MDT_PREFER_NATIVE); |