aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/jacl/jacl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/jacl/jacl.cpp')
-rw-r--r--engines/glk/jacl/jacl.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/glk/jacl/jacl.cpp b/engines/glk/jacl/jacl.cpp
index 0e97f59cc7..daeffe9ab9 100644
--- a/engines/glk/jacl/jacl.cpp
+++ b/engines/glk/jacl/jacl.cpp
@@ -53,7 +53,11 @@ void JACL::deinitialize() {
}
Common::Error JACL::readSaveData(Common::SeekableReadStream *rs) {
- return Common::kNoError;
+ strid_t data_stream = _streams->openStream(rs);
+ bool success = restore_game(data_stream);
+ _streams->deleteStream(data_stream);
+
+ return success ? Common::kNoError : Common::kReadingFailed;
}
Common::Error JACL::writeGameData(Common::WriteStream *ws) {