diff options
author | Paul Gilbert | 2019-06-18 19:56:25 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-06-22 14:40:49 -0700 |
commit | ed21388e11a928fc965714a035d2c18887ec7f62 (patch) | |
tree | bb41c7bf99f482c2e8964403929a779f976fe21a /engines/glk/alan2/alan2.cpp | |
parent | 08bc570308b0698090ce668dc7dca4c0c76dd3df (diff) | |
download | scummvm-rg350-ed21388e11a928fc965714a035d2c18887ec7f62.tar.gz scummvm-rg350-ed21388e11a928fc965714a035d2c18887ec7f62.tar.bz2 scummvm-rg350-ed21388e11a928fc965714a035d2c18887ec7f62.zip |
GLK: ALAN2: Added missing main code file, hooked up to Alan2 engine skeleton
Diffstat (limited to 'engines/glk/alan2/alan2.cpp')
-rw-r--r-- | engines/glk/alan2/alan2.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/glk/alan2/alan2.cpp b/engines/glk/alan2/alan2.cpp index 1889c696cd..fec1c62a40 100644 --- a/engines/glk/alan2/alan2.cpp +++ b/engines/glk/alan2/alan2.cpp @@ -21,6 +21,7 @@ */ #include "glk/alan2/alan2.h" +#include "glk/alan2/main.h" #include "common/config-manager.h" #include "common/translation.h" #include "common/error.h" @@ -45,7 +46,16 @@ void Alan2::runGame() { if (!is_gamefile_valid()) return; - // TODO + Common::String filename = getFilename(); + while (filename.contains('.')) + filename.deleteLastChar(); + advnam = filename.c_str(); + + codfil = &_gameFile; + strncpy(codfnm, getFilename().c_str(), 255); + codfnm[255] = '\0'; + + run(); } Common::Error Alan2::readSaveData(Common::SeekableReadStream *rs) { |