Added variable to savegame format so that savegames can be correctly loaded from the ScummVM launcher

svn-id: r41423
This commit is contained in:
Paul Gilbert 2009-06-10 12:15:50 +00:00
parent ff72f8531c
commit f2c1b18242
4 changed files with 6 additions and 2 deletions

View file

@ -774,8 +774,6 @@ int16 Op_UnfreezeParent(void) {
return 0;
}
int16 protectionCode = 0;
int16 Op_ProtectionFlag(void) {
int16 temp = protectionCode;
int16 newVar;

View file

@ -25,6 +25,7 @@
#include "cruise/cruise_main.h"
#include "cruise/cruise.h"
#include "cruise/vars.h"
#include "common/serializer.h"
#include "common/savefile.h"
@ -143,6 +144,7 @@ static void syncBasicInfo(Common::Serializer &s) {
s.syncAsSint16LE(flagCt);
s.syncAsSint16LE(var41);
s.syncAsSint16LE(playerMenuEnabled);
s.syncAsSint16LE(protectionCode);
}
static void syncBackgroundTable(Common::Serializer &s) {

View file

@ -79,6 +79,8 @@ int16 volumeNumberOfEntry;
int16 displayOn = 1;
int16 protectionCode = 0;
int16 globalVars[2000];
dataFileEntry filesDatabase[NUM_FILE_ENTRIES];

View file

@ -183,6 +183,8 @@ extern int16 volumeNumberOfEntry;
extern int16 displayOn;
extern int16 protectionCode;
#define NUM_FILE_ENTRIES 257
extern int16 globalVars[2000];