mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
Fixed Indy4's necklace bug. Indy4 is now finishable
svn-id: r3643
This commit is contained in:
parent
e924cd5c26
commit
c994e8bc8b
@ -470,6 +470,7 @@ void Scumm::saveOrLoad(Serializer *s) {
|
||||
|
||||
int i,j;
|
||||
int var120Backup;
|
||||
int var98Backup;
|
||||
|
||||
s->saveLoadEntries(this,mainEntries);
|
||||
|
||||
@ -496,10 +497,17 @@ void Scumm::saveOrLoad(Serializer *s) {
|
||||
s->saveLoadArrayOf(_shadowPalette, _shadowPaletteSize, 1, sleByte);
|
||||
|
||||
s->saveLoadArrayOf(_classData, _numGlobalObjects, sizeof(_classData[0]), sleUint32);
|
||||
|
||||
var120Backup=_vars[120];
|
||||
var98Backup=_vars[98];
|
||||
|
||||
s->saveLoadArrayOf(_vars, _numVariables, sizeof(_vars[0]), sleInt16);
|
||||
|
||||
if(_gameId == GID_TENTACLE) // Maybe misplaced, but that's the main idea
|
||||
_vars[120]=var120Backup;
|
||||
if(_gameId == GID_INDY4)
|
||||
_vars[98]=var98Backup;;
|
||||
|
||||
s->saveLoadArrayOf(_bitVars, _numBitVariables>>3, 1, sleByte);
|
||||
|
||||
/* Save or load a list of the locked objects */
|
||||
|
@ -875,7 +875,7 @@ void Scumm::dumpResource(char *tag, int index, byte *ptr) {
|
||||
else
|
||||
size = READ_BE_UINT32_UNALIGNED(ptr+4);
|
||||
|
||||
sprintf(buf, "dumps\\%s%d.dmp", tag,index);
|
||||
sprintf(buf, "dumps/%s%d.dmp", tag,index);
|
||||
|
||||
out = fopen(buf,"rb");
|
||||
if (!out) {
|
||||
|
Loading…
Reference in New Issue
Block a user