diff options
author | Filippos Karapetis | 2009-03-07 16:14:20 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-03-07 16:14:20 +0000 |
commit | 1e29983d8e1b29adb75d478454be79dce7a113b4 (patch) | |
tree | c3b10a34d5a0c96ab47d74401c73187595376237 /engines/sci/engine/savegame.cpp | |
parent | f05e49433ca8980ca533036613038c40ae8fa9ac (diff) | |
download | scummvm-rg350-1e29983d8e1b29adb75d478454be79dce7a113b4.tar.gz scummvm-rg350-1e29983d8e1b29adb75d478454be79dce7a113b4.tar.bz2 scummvm-rg350-1e29983d8e1b29adb75d478454be79dce7a113b4.zip |
Replaced getInt16, getUInt16 and putInt16
svn-id: r39189
Diffstat (limited to 'engines/sci/engine/savegame.cpp')
-rw-r--r-- | engines/sci/engine/savegame.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index 5fbf126293..ac2acffa6f 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -4904,13 +4904,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); @@ -5010,13 +5010,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]); |