From 1e8b91ef2b94accc1f5d25c334eab8ee05b4bd7a Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 23 Aug 2010 08:40:46 +0000 Subject: SWORD25: Partially unstubbed FindEmbeddedPNG so it is less noisy svn-id: r53288 --- engines/sword25/gfx/image/b25sloader.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(512), FileSize))); -- cgit v1.2.3