mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
BRA now loads tables and correctly selects episode (part) for resource loading.
svn-id: r28562
This commit is contained in:
parent
de30651476
commit
c408e30bb9
@ -581,6 +581,8 @@ public:
|
||||
virtual void callFunction(uint index, void* parm);
|
||||
|
||||
public:
|
||||
Table *_countersNames;
|
||||
|
||||
Table *_audioCommandsNames;
|
||||
const char **_audioCommandsNamesRes;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user