aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2010-08-23 08:40:46 +0000
committerEugene Sandulenko2010-10-12 23:17:40 +0000
commit1e8b91ef2b94accc1f5d25c334eab8ee05b4bd7a (patch)
tree544120b9b3411f94996df4e4c9cbfbd91e6347bc
parente381bc3c148d2a45e903e71538be393e99143fd2 (diff)
downloadscummvm-rg350-1e8b91ef2b94accc1f5d25c334eab8ee05b4bd7a.tar.gz
scummvm-rg350-1e8b91ef2b94accc1f5d25c334eab8ee05b4bd7a.tar.bz2
scummvm-rg350-1e8b91ef2b94accc1f5d25c334eab8ee05b4bd7a.zip
SWORD25: Partially unstubbed FindEmbeddedPNG so it is less noisy
svn-id: r53288
-rw-r--r--engines/sword25/gfx/image/b25sloader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sword25/gfx/image/b25sloader.cpp b/engines/sword25/gfx/image/b25sloader.cpp
index 43313ba93e..74c311990c 100644
--- a/engines/sword25/gfx/image/b25sloader.cpp
+++ b/engines/sword25/gfx/image/b25sloader.cpp
@@ -47,6 +47,9 @@ namespace Sword25 {
namespace {
unsigned int FindEmbeddedPNG(const byte *FileDataPtr, unsigned int FileSize) {
+ if (memcmp(FileDataPtr, "BS25SAVEGAME", 12))
+ return 0;
+
#if 0
// Einen Stringstream mit dem Anfang der Datei intialisieren. 512 Byte sollten hierfür genügen.
istringstream StringStream(string(FileDataPtr, FileDataPtr + min(static_cast<unsigned int>(512), FileSize)));