diff options
author | Travis Howell | 2008-04-06 07:05:56 +0000 |
---|---|---|
committer | Travis Howell | 2008-04-06 07:05:56 +0000 |
commit | 27816d8c8bd1c3d4dfbacf5d3973825c9085f349 (patch) | |
tree | 891c57fbbbeb41aa7a07ca42f6c2a4fa026ddf32 /engines/parallaction/parallaction_br.cpp | |
parent | 3d1a2e2049d599d88dc834a05dd25978f8a0f8f7 (diff) | |
download | scummvm-rg350-27816d8c8bd1c3d4dfbacf5d3973825c9085f349.tar.gz scummvm-rg350-27816d8c8bd1c3d4dfbacf5d3973825c9085f349.tar.bz2 scummvm-rg350-27816d8c8bd1c3d4dfbacf5d3973825c9085f349.zip |
Add very basic support for Amiga version of BRA.
svn-id: r31416
Diffstat (limited to 'engines/parallaction/parallaction_br.cpp')
-rw-r--r-- | engines/parallaction/parallaction_br.cpp | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/engines/parallaction/parallaction_br.cpp b/engines/parallaction/parallaction_br.cpp index 93174c9d47..34d6868b52 100644 --- a/engines/parallaction/parallaction_br.cpp +++ b/engines/parallaction/parallaction_br.cpp @@ -57,12 +57,16 @@ int Parallaction_br::init() { if (getPlatform() == Common::kPlatformPC) { _disk = new DosDisk_br(this); _disk->setLanguage(2); // NOTE: language is now hardcoded to English. Original used command-line parameters. - } else - error("unsupported platform for Big Red Adventure"); - } else + _soundMan = new DummySoundMan(this); + } else { + _disk = new AmigaDisk_br(this); + _disk->setLanguage(2); // NOTE: language is now hardcoded to English. Original used command-line parameters. + _soundMan = new AmigaSoundMan(this); + } + } else { error("unknown game type"); + } - _soundMan = new DummySoundMan(this); initResources(); initFonts(); @@ -119,14 +123,6 @@ int Parallaction_br::go() { -void Parallaction_br::initFonts() { - - _menuFont = _disk->loadFont("russia"); - _dialogueFont = _disk->loadFont("comic"); - _labelFont = _menuFont; - -} - void Parallaction_br::freeFonts() { delete _menuFont; @@ -137,15 +133,22 @@ void Parallaction_br::freeFonts() { void Parallaction_br::initCursors() { - _dinoCursor = _disk->loadPointer("pointer1"); - _dougCursor = _disk->loadPointer("pointer2"); - _donnaCursor = _disk->loadPointer("pointer3"); + if (getPlatform() == Common::kPlatformPC) { + _dinoCursor = _disk->loadPointer("pointer1"); + _dougCursor = _disk->loadPointer("pointer2"); + _donnaCursor = _disk->loadPointer("pointer3"); - _mouseArrow = _donnaCursor; + _mouseArrow = _donnaCursor; + } else { + // TODO: Where are the Amiga cursors? + } } void Parallaction_br::setMousePointer(int16 index) { + // FIXME: Where are the Amiga cursors? + if (getPlatform() == Common::kPlatformAmiga) + return; Common::Rect r; _mouseArrow->getRect(0, r); |