Fatty Bear games use positive size values in these opcodes.
svn-id: r12933
This commit is contained in:
parent
e5c3d7329b
commit
429c86f4f3
1 changed files with 8 additions and 0 deletions
|
@ -1031,6 +1031,10 @@ void ScummEngine_v6he::o6_readFile() {
|
||||||
int32 size = pop();
|
int32 size = pop();
|
||||||
int slot = pop();
|
int slot = pop();
|
||||||
|
|
||||||
|
// Fatty Bear uses positive values
|
||||||
|
if (_gameId == GID_FBEAR)
|
||||||
|
size = -size;
|
||||||
|
|
||||||
if (size == -2) {
|
if (size == -2) {
|
||||||
push(_hFileTable[slot].readUint16LE());
|
push(_hFileTable[slot].readUint16LE());
|
||||||
} else if (size == -1) {
|
} else if (size == -1) {
|
||||||
|
@ -1053,6 +1057,10 @@ void ScummEngine_v6he::o6_writeFile() {
|
||||||
int16 resID = pop();
|
int16 resID = pop();
|
||||||
int slot = pop();
|
int slot = pop();
|
||||||
|
|
||||||
|
// Fatty Bear uses positive values
|
||||||
|
if (_gameId == GID_FBEAR)
|
||||||
|
size = -size;
|
||||||
|
|
||||||
if (size == -2) {
|
if (size == -2) {
|
||||||
_hFileTable[slot].writeUint16LE(resID);
|
_hFileTable[slot].writeUint16LE(resID);
|
||||||
} else if (size == -1) {
|
} else if (size == -1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue