diff options
author | Paul Gilbert | 2016-07-22 19:20:05 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-22 21:54:48 -0400 |
commit | 4f08292c8c082361af7212e3951af4b1b6c45199 (patch) | |
tree | 21237f9eefa89b153eab0cb64a0bc2f93a410f15 /engines/titanic/detection.cpp | |
parent | 03b45f44dfdb86a9607aaa09a02e5c57968e275f (diff) | |
download | scummvm-rg350-4f08292c8c082361af7212e3951af4b1b6c45199.tar.gz scummvm-rg350-4f08292c8c082361af7212e3951af4b1b6c45199.tar.bz2 scummvm-rg350-4f08292c8c082361af7212e3951af4b1b6c45199.zip |
TITANIC: Add support for arbitrary window event targets
Also moved all standard game event methods to CMainGameWindow. This
will allow for the Continue Save dialog to be added in and get
events instead of the game window
Diffstat (limited to 'engines/titanic/detection.cpp')
-rw-r--r-- | engines/titanic/detection.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/titanic/detection.cpp b/engines/titanic/detection.cpp index ca4db961b2..a9878d9da7 100644 --- a/engines/titanic/detection.cpp +++ b/engines/titanic/detection.cpp @@ -127,8 +127,9 @@ SaveStateList TitanicMetaEngine::listSaves(const char *target) const { if (in) { Titanic::CompressedFile file; file.open(in); - Titanic::CProjectItem::readSavegameHeader(&file, header); - saveList.push_back(SaveStateDescriptor(slot, header._saveName)); + + if (Titanic::CProjectItem::readSavegameHeader(&file, header)) + saveList.push_back(SaveStateDescriptor(slot, header._saveName)); if (header._thumbnail) { header._thumbnail->free(); |