diff options
author | Paul Gilbert | 2019-11-12 20:53:57 -0800 |
---|---|---|
committer | Paul Gilbert | 2019-11-12 20:54:06 -0800 |
commit | 536c1f0fa94982b34724c40214c91bd0b9629214 (patch) | |
tree | 5b1e06b86c7dfa7a3d9f0f1044f28251c02a5987 /engines/glk/archetype/saveload.cpp | |
parent | 92d4d43f326a196b927050353dab16b524e28cda (diff) | |
download | scummvm-rg350-536c1f0fa94982b34724c40214c91bd0b9629214.tar.gz scummvm-rg350-536c1f0fa94982b34724c40214c91bd0b9629214.tar.bz2 scummvm-rg350-536c1f0fa94982b34724c40214c91bd0b9629214.zip |
GLK: ARCHETYPE: Hooking up savegame code
Diffstat (limited to 'engines/glk/archetype/saveload.cpp')
-rw-r--r-- | engines/glk/archetype/saveload.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/glk/archetype/saveload.cpp b/engines/glk/archetype/saveload.cpp index 61069e3161..dc36346cf8 100644 --- a/engines/glk/archetype/saveload.cpp +++ b/engines/glk/archetype/saveload.cpp @@ -36,7 +36,7 @@ void saveload_init() { vContSeq = CONT_SEQ; Dynamic = 0; - Translating = true; + Translating = false; } // ===================== Forward Declarations ======================= @@ -306,7 +306,7 @@ static void walk_expr(MissionType mission, Common::Stream *bfile, ExprTree &the_ case NUMERIC: switch (mission) { case LOAD: - the_expr->_data._numeric.acl_int = readStream->readUint32LE(); + the_expr->_data._numeric.acl_int = readStream->readSint32LE(); break; case DUMP: writeStream->writeSint32LE(the_expr->_data._numeric.acl_int); @@ -591,14 +591,14 @@ void load_object(Common::ReadStream *f_in, ObjectPtr &the_object) { } void dump_object(Common::WriteStream *f_out, const ObjectPtr the_object) { - f_out->writeUint16LE(the_object->inherited_from); + f_out->writeSint16LE(the_object->inherited_from); dump_item_list(f_out, the_object->attributes, EXPR_LIST); dump_item_list(f_out, the_object->methods, STMT_LIST); if (the_object->other == nullptr) { - f_out->writeUint16LE(vEndSeq); + f_out->writeByte(vEndSeq); } else { - f_out->writeUint16LE(vContSeq); + f_out->writeByte(vContSeq); dump_stmt(f_out, the_object->other); } } |