diff options
author | Alyssa Milburn | 2011-07-19 21:48:27 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-07-19 21:48:27 +0200 |
commit | 0706588388be81aa96073777585bc3e79095c97b (patch) | |
tree | 2c943dc22f21e9d1194903a5acf828a46e3aa283 /engines/composer | |
parent | f40f8a1793d48a82db3d8f84690946b375f5a9d6 (diff) | |
download | scummvm-rg350-0706588388be81aa96073777585bc3e79095c97b.tar.gz scummvm-rg350-0706588388be81aa96073777585bc3e79095c97b.tar.bz2 scummvm-rg350-0706588388be81aa96073777585bc3e79095c97b.zip |
COMPOSER: Run kEventUnload when appropriate.
Diffstat (limited to 'engines/composer')
-rw-r--r-- | engines/composer/composer.cpp | 3 | ||||
-rw-r--r-- | engines/composer/scripting.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/engines/composer/composer.cpp b/engines/composer/composer.cpp index 9407821661..17e47257c2 100644 --- a/engines/composer/composer.cpp +++ b/engines/composer/composer.cpp @@ -381,6 +381,9 @@ void ComposerEngine::unloadLibrary(uint id) { delete i->_archive; _libraries.erase(i); + + runEvent(kEventUnload, id, 0, 0); + return; } diff --git a/engines/composer/scripting.cpp b/engines/composer/scripting.cpp index f52ed3ea43..3c951f9d8f 100644 --- a/engines/composer/scripting.cpp +++ b/engines/composer/scripting.cpp @@ -590,7 +590,7 @@ int16 ComposerEngine::scriptFuncCall(uint16 id, int16 param1, int16 param2, int1 _pendingPageChanges.push_back(PendingPageChange(param1, false)); return 1; case kFuncUnloadPage: - debug(3, "ignoring kFuncUnloadPage(%d)", param1); + debug(3, "kFuncUnloadPage(%d)", param1); _pendingPageChanges.push_back(PendingPageChange(param1, true)); return 1; case kFuncSetPalette: |