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.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/glk/jacl/jacl.cpp b/engines/glk/jacl/jacl.cpp
index 86b7c72110..0e97f59cc7 100644
--- a/engines/glk/jacl/jacl.cpp
+++ b/engines/glk/jacl/jacl.cpp
@@ -21,6 +21,7 @@
*/
#include "glk/jacl/jacl.h"
+#include "glk/jacl/prototypes.h"
#include "common/config-manager.h"
namespace Glk {
@@ -56,7 +57,11 @@ Common::Error JACL::readSaveData(Common::SeekableReadStream *rs) {
}
Common::Error JACL::writeGameData(Common::WriteStream *ws) {
- return Common::kNoError;
+ strid_t data_stream = _streams->openStream(ws);
+ bool success = save_game(data_stream);
+ _streams->deleteStream(data_stream);
+
+ return success ? Common::kNoError : Common::kWritingFailed;
}
} // End of namespace JACL