diff options
author | Paul Gilbert | 2019-01-02 23:13:13 -0800 |
---|---|---|
committer | Paul Gilbert | 2019-01-02 23:13:13 -0800 |
commit | 85816c8a54d77423c6400e41da93f62fe1f948ff (patch) | |
tree | 7bbfc83db905b320a569e093f9e52849339011c6 /engines/glk/alan2/alan2.cpp | |
parent | 8d6909608d3faff88a43408b01097a070c45db21 (diff) | |
download | scummvm-rg350-85816c8a54d77423c6400e41da93f62fe1f948ff.tar.gz scummvm-rg350-85816c8a54d77423c6400e41da93f62fe1f948ff.tar.bz2 scummvm-rg350-85816c8a54d77423c6400e41da93f62fe1f948ff.zip |
GLK: Make a _gameFile field in the base Glk engine
Diffstat (limited to 'engines/glk/alan2/alan2.cpp')
-rw-r--r-- | engines/glk/alan2/alan2.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/glk/alan2/alan2.cpp b/engines/glk/alan2/alan2.cpp index f9dcb52903..60889f70a3 100644 --- a/engines/glk/alan2/alan2.cpp +++ b/engines/glk/alan2/alan2.cpp @@ -45,9 +45,7 @@ Alan2::Alan2(OSystem *syst, const GlkGameDescription &gameDesc) : GlkAPI(syst, g dscrstkp = 0; } -void Alan2::runGame(Common::SeekableReadStream *gameFile) { - _gameFile = gameFile; - +void Alan2::runGame() { // TODO: Initialize these properly int tmp = 0; Common::String gameFileName; @@ -73,12 +71,12 @@ Common::Error Alan2::saveGameData(strid_t file, const Common::String &desc) { } bool Alan2::is_gamefile_valid() { - if (_gameFile->size() < 8) { + if (_gameFile.size() < 8) { GUIErrorMessage(_("This is too short to be a valid Alan2 file.")); return false; } - if (_gameFile->readUint32BE() != MKTAG(2, 8, 1, 0)) { + if (_gameFile.readUint32BE() != MKTAG(2, 8, 1, 0)) { GUIErrorMessage(_("This is not a valid Alan2 file.")); return false; } |