aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2/cge2.cpp
diff options
context:
space:
mode:
authoruruk2014-04-28 10:24:35 +0200
committeruruk2014-04-28 10:24:35 +0200
commit258d7ea535c2891bed4132e649c66fb86967a2a0 (patch)
treeb5b0cfd2c9c54ab858961a6c4a099a3b21d28fe8 /engines/cge2/cge2.cpp
parentd9e0e882b7bb1e2d32e80334b434c0d6962a84d7 (diff)
downloadscummvm-rg350-258d7ea535c2891bed4132e649c66fb86967a2a0.tar.gz
scummvm-rg350-258d7ea535c2891bed4132e649c66fb86967a2a0.tar.bz2
scummvm-rg350-258d7ea535c2891bed4132e649c66fb86967a2a0.zip
CGE2: Implement deinitialization properly.
Diffstat (limited to 'engines/cge2/cge2.cpp')
-rw-r--r--engines/cge2/cge2.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/cge2/cge2.cpp b/engines/cge2/cge2.cpp
index 41b6249382..56393d20db 100644
--- a/engines/cge2/cge2.cpp
+++ b/engines/cge2/cge2.cpp
@@ -34,14 +34,14 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription)
_resman = nullptr;
}
-CGE2Engine::~CGE2Engine() {
- delete _resman;
-}
-
void CGE2Engine::init() {
_resman = new ResourceManager();
}
+void CGE2Engine::deinit() {
+ delete _resman;
+}
+
bool CGE2Engine::hasFeature(EngineFeature f) const {
return false;
}
@@ -66,6 +66,7 @@ Common::Error CGE2Engine::saveGameState(int slot, const Common::String &desc) {
Common::Error CGE2Engine::run() {
init();
warning("STUB: CGE2Engine::run()");
+ deinit();
return Common::kNoError;
}