diff options
author | Nicola Mettifogo | 2007-08-12 13:27:48 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-08-12 13:27:48 +0000 |
commit | c408e30bb93ba37c13b3f84577ec454b871a8a5f (patch) | |
tree | 0f4712bb8beac4764b716646c529ec249da27433 | |
parent | de3065147698c58a99c40c86b0868acdd5fafeba (diff) | |
download | scummvm-rg350-c408e30bb93ba37c13b3f84577ec454b871a8a5f.tar.gz scummvm-rg350-c408e30bb93ba37c13b3f84577ec454b871a8a5f.tar.bz2 scummvm-rg350-c408e30bb93ba37c13b3f84577ec454b871a8a5f.zip |
BRA now loads tables and correctly selects episode (part) for resource loading.
svn-id: r28562
-rw-r--r-- | engines/parallaction/parallaction.h | 2 | ||||
-rw-r--r-- | engines/parallaction/parallaction_br.cpp | 19 |
2 files changed, 20 insertions, 1 deletions
diff --git a/engines/parallaction/parallaction.h b/engines/parallaction/parallaction.h index e7ba49f451..6804143a51 100644 --- a/engines/parallaction/parallaction.h +++ b/engines/parallaction/parallaction.h @@ -581,6 +581,8 @@ public: virtual void callFunction(uint index, void* parm); public: + Table *_countersNames; + Table *_audioCommandsNames; const char **_audioCommandsNamesRes; diff --git a/engines/parallaction/parallaction_br.cpp b/engines/parallaction/parallaction_br.cpp index 84bed3eec2..9af3f49175 100644 --- a/engines/parallaction/parallaction_br.cpp +++ b/engines/parallaction/parallaction_br.cpp @@ -41,6 +41,14 @@ enum MenuOptions { kMenuQuit = 6 }; +const char *partNames[] = { + "PART0", + "PART1", + "PART2", + "PART3", + "PART4" +}; + int Parallaction_br::init() { // Detect game @@ -115,6 +123,7 @@ int Parallaction_br::go() { default: _part = option; + _disk->selectArchive(partNames[_part]); initPart(); break; } @@ -218,7 +227,7 @@ int Parallaction_br::showMenu() { while (true) { - if ((_mouseButtons == kMouseLeftUp) && selectedItem > 0) + if ((_mouseButtons == kMouseLeftUp) && selectedItem >= 0) break; updateInput(); @@ -302,11 +311,19 @@ void Parallaction_br::setMousePointer(int16 index) { void Parallaction_br::initPart() { + _globalTable = _disk->loadTable("global"); + _objectsNames = _disk->loadTable("objects"); + _countersNames = _disk->loadTable("counters"); + +// _disk->loadObjects("icone.ico"); } void Parallaction_br::freePart() { + delete _globalTable; + delete _objectsNames; + delete _countersNames; } |