From 31e434dcf1e46510606efa3025c24c17ace379c6 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 24 Nov 2004 00:14:21 +0000 Subject: 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 --- saga/saga.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'saga/saga.cpp') 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); -- cgit v1.2.3