diff options
author | Paul Gilbert | 2019-06-16 13:29:15 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-06-16 14:59:26 -0700 |
commit | 553bb74f8c380ee31fb771c6619dad8e83fed8ce (patch) | |
tree | bf99be6554e96d66d2700837d7c08dc0d48ad127 /engines/glk/alan2 | |
parent | 3876fb67108284063b4d133cf087a04dae6993e4 (diff) | |
download | scummvm-rg350-553bb74f8c380ee31fb771c6619dad8e83fed8ce.tar.gz scummvm-rg350-553bb74f8c380ee31fb771c6619dad8e83fed8ce.tar.bz2 scummvm-rg350-553bb74f8c380ee31fb771c6619dad8e83fed8ce.zip |
GLK: Further changeover of sub-engines to use new savegame code
Diffstat (limited to 'engines/glk/alan2')
-rw-r--r-- | engines/glk/alan2/alan2.cpp | 8 | ||||
-rw-r--r-- | engines/glk/alan2/alan2.h | 9 |
2 files changed, 9 insertions, 8 deletions
diff --git a/engines/glk/alan2/alan2.cpp b/engines/glk/alan2/alan2.cpp index da9dbf1115..492d425d98 100644 --- a/engines/glk/alan2/alan2.cpp +++ b/engines/glk/alan2/alan2.cpp @@ -61,14 +61,14 @@ void Alan2::runGame() { // TODO } -Common::Error Alan2::loadGameData(strid_t file) { +Common::Error Alan2::readSaveData(Common::SeekableReadStream *rs) { // TODO - return Common::kNoError; + return Common::kReadingFailed; } -Common::Error Alan2::saveGameData(strid_t file, const Common::String &desc) { +Common::Error Alan2::writeGameData(Common::WriteStream *ws) { // TODO - return Common::kNoError; + return Common::kWritingFailed; } bool Alan2::is_gamefile_valid() { diff --git a/engines/glk/alan2/alan2.h b/engines/glk/alan2/alan2.h index a6ded4304a..a8e500a0dd 100644 --- a/engines/glk/alan2/alan2.h +++ b/engines/glk/alan2/alan2.h @@ -68,14 +68,15 @@ public: virtual InterpreterType getInterpreterType() const override { return INTERPRETER_ALAN2; } /** - * Load a savegame from the passed stream + * Load a savegame from the passed Quetzal file chunk stream */ - virtual Common::Error loadGameData(strid_t file) override; + virtual Common::Error readSaveData(Common::SeekableReadStream *rs) override; /** - * Save the game to the passed stream + * Save the game. The passed write stream represents access to the UMem chunk + * in the Quetzal save file that will be created */ - virtual Common::Error saveGameData(strid_t file, const Common::String &desc) override; + virtual Common::Error writeGameData(Common::WriteStream *ws) override; /** * Output a string to the screen |