diff options
Diffstat (limited to 'engines/glk/glulxe/serial.cpp')
-rw-r--r-- | engines/glk/glulxe/serial.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/glk/glulxe/serial.cpp b/engines/glk/glulxe/serial.cpp index d485160302..81cfa9e41b 100644 --- a/engines/glk/glulxe/serial.cpp +++ b/engines/glk/glulxe/serial.cpp @@ -232,13 +232,13 @@ uint Glulxe::perform_restoreundo() { return res; } -Common::Error Glulxe::saveGameData(strid_t str, const Common::String &desc) { +Common::Error Glulxe::writeGameData(Common::WriteStream *ws) { dest_t dest; int ix; - uint res, lx, val; + uint res = 0, lx, val; uint memstart = 0, memlen = 0, stackstart = 0, stacklen = 0; uint heapstart = 0, heaplen = 0, filestart = 0, filelen = 0; - +#ifdef TODO stream_get_iosys(&val, &lx); if (val != 2) { /* Not using the Glk I/O system, so bail. This function only @@ -246,14 +246,14 @@ Common::Error Glulxe::saveGameData(strid_t str, const Common::String &desc) { fatal_error("Streams are only available in Glk I/O system."); } - if (str == nullptr) + if (ws == nullptr) return Common::kUnknownError; dest.ismem = false; dest.size = 0; dest.pos = 0; dest.ptr = nullptr; - dest.str = str; + dest.str = ws; res = 0; @@ -357,11 +357,11 @@ Common::Error Glulxe::saveGameData(strid_t str, const Common::String &desc) { } /* All done. */ - +#endif return res ? Common::kUnknownError : Common::kNoError; } -Common::Error Glulxe::loadGameData(strid_t str) { +Common::Error Glulxe::readSaveData(Common::SeekableReadStream *rs) { dest_t dest; int ix; uint lx, res, val; @@ -369,7 +369,7 @@ Common::Error Glulxe::loadGameData(strid_t str) { uint heapsumlen = 0; uint *heapsumarr = nullptr; bool fromshell = false; - +#ifdef TODO /* If profiling is enabled and active then fail. */ #if VM_PROFILING if (profile_profiling_active()) @@ -475,7 +475,7 @@ Common::Error Glulxe::loadGameData(strid_t str) { if (res) return Common::kUnknownError; - +#endif return Common::kNoError; } |