COMPOSER: Run kEventUnload when appropriate.

This commit is contained in:
Alyssa Milburn 2011-07-19 21:48:27 +02:00
parent f40f8a1793
commit 0706588388
2 changed files with 4 additions and 1 deletions

View File

@ -381,6 +381,9 @@ void ComposerEngine::unloadLibrary(uint id) {
delete i->_archive;
_libraries.erase(i);
runEvent(kEventUnload, id, 0, 0);
return;
}

View File

@ -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: