GOB: o7_draw0xA4 is o7_loadLBMPalette

Stubbing that one for now.

svn-id: r55731
This commit is contained in:
Sven Hesse 2011-02-02 16:50:23 +00:00
parent b9b7b449b9
commit 729be647a0
2 changed files with 9 additions and 6 deletions

View File

@ -617,7 +617,7 @@ protected:
void o7_zeroVar();
void o7_getINIValue();
void o7_setINIValue();
void o7_draw0xA4();
void o7_loadLBMPalette();
void o7_opendBase();
void o7_closedBase();
void o7_getDBString();

View File

@ -67,7 +67,7 @@ void Inter_v7::setupOpcodesDraw() {
OPCODEDRAW(0x95, o7_zeroVar);
OPCODEDRAW(0xA1, o7_getINIValue);
OPCODEDRAW(0xA2, o7_setINIValue);
OPCODEDRAW(0xA4, o7_draw0xA4);
OPCODEDRAW(0xA4, o7_loadLBMPalette);
OPCODEDRAW(0xC4, o7_opendBase);
OPCODEDRAW(0xC5, o7_closedBase);
OPCODEDRAW(0xC6, o7_getDBString);
@ -431,15 +431,18 @@ void Inter_v7::o7_setINIValue() {
_inis.setValue(file, section, key, value);
}
void Inter_v7::o7_draw0xA4() {
void Inter_v7::o7_loadLBMPalette() {
Common::String file = _vm->_game->_script->evalString();
if (!file.contains('.'))
file += ".LBM";
int16 expr0 = _vm->_game->_script->readValExpr();
int16 expr1 = _vm->_game->_script->readValExpr();
int16 startIndex = CLIP<int16>(_vm->_game->_script->readValExpr(), 0, 255);
int16 stopIndex = CLIP<int16>(_vm->_game->_script->readValExpr(), 0, 255);
warning("Addy Stub Draw 0xA4: \"%s\", %d, %d", file.c_str(), expr0, expr1);
if (startIndex > stopIndex)
SWAP(startIndex, stopIndex);
warning("Addy Stub: Load LBM palette: \"%s\", %d-%d", file.c_str(), startIndex, stopIndex);
}
void Inter_v7::o7_opendBase() {