aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2018-11-12 18:42:45 -0800
committerPaul Gilbert2018-12-08 19:05:59 -0800
commit7b90a2b60ed09fdba081dd752b4167e0b0e1fd27 (patch)
treed6b8f24d0058cd74b8c2b6339080ace2e4b48e82
parent6b23a72e517bce458246b33b6ead2a9d90afc258 (diff)
downloadscummvm-rg350-7b90a2b60ed09fdba081dd752b4167e0b0e1fd27.tar.gz
scummvm-rg350-7b90a2b60ed09fdba081dd752b4167e0b0e1fd27.tar.bz2
scummvm-rg350-7b90a2b60ed09fdba081dd752b4167e0b0e1fd27.zip
GLK: FROTZ: Hook up processor execution to main runGame method
-rw-r--r--engines/gargoyle/frotz/frotz.cpp7
-rw-r--r--engines/gargoyle/frotz/frotz.h5
2 files changed, 11 insertions, 1 deletions
diff --git a/engines/gargoyle/frotz/frotz.cpp b/engines/gargoyle/frotz/frotz.cpp
index 5c861890bf..3a7b913da4 100644
--- a/engines/gargoyle/frotz/frotz.cpp
+++ b/engines/gargoyle/frotz/frotz.cpp
@@ -34,11 +34,16 @@ Frotz::Frotz(OSystem *syst, const GargoyleGameDescription *gameDesc) :
g_vm = this;
}
+Frotz::~Frotz() {
+ reset_memory();
+}
+
void Frotz::runGame(Common::SeekableReadStream *gameFile) {
story_fp = gameFile;
initialize();
- // TODO
+ // Game loop
+ interpret();
}
void Frotz::initialize() {
diff --git a/engines/gargoyle/frotz/frotz.h b/engines/gargoyle/frotz/frotz.h
index 78272f05f0..f7211f7c3d 100644
--- a/engines/gargoyle/frotz/frotz.h
+++ b/engines/gargoyle/frotz/frotz.h
@@ -39,6 +39,11 @@ public:
Frotz(OSystem *syst, const GargoyleGameDescription *gameDesc);
/**
+ * Destructor
+ */
+ virtual ~Frotz();
+
+ /**
* Initialization
*/
void initialize();