aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorAdrian Frühwirth2018-04-22 22:22:46 +0200
committerAdrian Frühwirth2018-04-22 22:45:54 +0200
commit10abb0c646fee1ddf516330ab4736c6ab087569e (patch)
treee990421d7c17131b9802668caf1fe208d2622869 /engines
parentb1b83ac9547e209da3d588487ee6427b1c9d2995 (diff)
downloadscummvm-rg350-10abb0c646fee1ddf516330ab4736c6ab087569e.tar.gz
scummvm-rg350-10abb0c646fee1ddf516330ab4736c6ab087569e.tar.bz2
scummvm-rg350-10abb0c646fee1ddf516330ab4736c6ab087569e.zip
TITANIC: Fix discrepancy between readSavegameHeader() declaration and definition
This should have been part of commit 00e59a3122.
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/core/project_item.cpp2
-rw-r--r--engines/titanic/core/project_item.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/core/project_item.cpp b/engines/titanic/core/project_item.cpp
index 6da891c417..17b506a291 100644
--- a/engines/titanic/core/project_item.cpp
+++ b/engines/titanic/core/project_item.cpp
@@ -495,7 +495,7 @@ SaveStateList CProjectItem::getSavegameList(const Common::String &target) {
return saveList;
}
-bool CProjectItem::readSavegameHeader(SimpleFile *file, TitanicSavegameHeader &header, bool skipThumbnail) {
+WARN_UNUSED_RESULT bool CProjectItem::readSavegameHeader(SimpleFile *file, TitanicSavegameHeader &header, bool skipThumbnail) {
char saveIdentBuffer[SAVEGAME_STR_SIZE + 1];
header._thumbnail = nullptr;
header._totalFrames = 0;
diff --git a/engines/titanic/core/project_item.h b/engines/titanic/core/project_item.h
index ef557f7f9d..1c5923fd0e 100644
--- a/engines/titanic/core/project_item.h
+++ b/engines/titanic/core/project_item.h
@@ -155,7 +155,7 @@ public:
/**
* Read in the header information for a savegame
*/
- static bool readSavegameHeader(SimpleFile *file, TitanicSavegameHeader &header, bool loadThumbnail = false);
+ WARN_UNUSED_RESULT static bool readSavegameHeader(SimpleFile *file, TitanicSavegameHeader &header, bool skipThumbnail = true);
public:
CLASSDEF;
CProjectItem();