aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/savegame.cfsml
diff options
context:
space:
mode:
authorFilippos Karapetis2009-03-07 18:43:15 +0000
committerFilippos Karapetis2009-03-07 18:43:15 +0000
commit5c8ea3ccf4a5c587c4e6a9ad007a0b814a0ef1f4 (patch)
tree0509324d89e6549a4cc3ff23040b86569d5fcfbc /engines/sci/engine/savegame.cfsml
parent73a4664552d5bfcba2a87d03fbf7aa53b622908c (diff)
downloadscummvm-rg350-5c8ea3ccf4a5c587c4e6a9ad007a0b814a0ef1f4.tar.gz
scummvm-rg350-5c8ea3ccf4a5c587c4e6a9ad007a0b814a0ef1f4.tar.bz2
scummvm-rg350-5c8ea3ccf4a5c587c4e6a9ad007a0b814a0ef1f4.zip
Updated savegame.cfsml
svn-id: r39198
Diffstat (limited to 'engines/sci/engine/savegame.cfsml')
-rw-r--r--engines/sci/engine/savegame.cfsml10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sci/engine/savegame.cfsml b/engines/sci/engine/savegame.cfsml
index 21e993a0fa..adeaef531f 100644
--- a/engines/sci/engine/savegame.cfsml
+++ b/engines/sci/engine/savegame.cfsml
@@ -808,13 +808,13 @@ static byte *find_unique_script_block(EngineState *s, byte *buf, int type) {
buf += magic_pos_adder;
do {
- int seeker_type = getUInt16(buf);
+ int seeker_type = READ_LE_UINT16(buf);
int seeker_size;
if (seeker_type == 0) break;
if (seeker_type == type) return buf;
- seeker_size = getUInt16(buf + 2);
+ seeker_size = READ_LE_UINT16(buf + 2);
buf += seeker_size;
} while(1);
@@ -914,13 +914,13 @@ static void reconstruct_scripts(EngineState *s, SegManager *self) {
byte *data = scr->buf + scr->objects[j].pos.offset;
if (self->isSci1_1) {
- uint16 *funct_area = (uint16 *) (scr->buf + getUInt16( data + 6 ));
- uint16 *prop_area = (uint16 *) (scr->buf + getUInt16( data + 4 ));
+ uint16 *funct_area = (uint16 *) (scr->buf + READ_LE_UINT16( data + 6 ));
+ uint16 *prop_area = (uint16 *) (scr->buf + READ_LE_UINT16( data + 4 ));
scr->objects[j].base_method = funct_area;
scr->objects[j].base_vars = prop_area;
} else {
- int funct_area = getUInt16( data + SCRIPT_FUNCTAREAPTR_OFFSET );
+ int funct_area = READ_LE_UINT16( data + SCRIPT_FUNCTAREAPTR_OFFSET );
Object *base_obj;
base_obj = obj_get(s, scr->objects[j].variables[SCRIPT_SPECIES_SELECTOR]);