[Scummvm-cvs-logs] SF.net SVN: scummvm:[40369] scummvm/trunk/engines/agos

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Thu May 7 14:05:44 CEST 2009


Revision: 40369
          http://scummvm.svn.sourceforge.net/scummvm/?rev=40369&view=rev
Author:   Kirben
Date:     2009-05-07 12:05:44 +0000 (Thu, 07 May 2009)

Log Message:
-----------
Correct incorrect byte in corrupt 72.out file, included with some PC versions of PN.

Modified Paths:
--------------
    scummvm/trunk/engines/agos/detection_tables.h
    scummvm/trunk/engines/agos/res.cpp

Modified: scummvm/trunk/engines/agos/detection_tables.h
===================================================================
--- scummvm/trunk/engines/agos/detection_tables.h	2009-05-07 09:49:13 UTC (rev 40368)
+++ scummvm/trunk/engines/agos/detection_tables.h	2009-05-07 12:05:44 UTC (rev 40369)
@@ -92,14 +92,13 @@
 		GF_OLD_BUNDLE | GF_CRUNCHED | GF_PLANAR
 	},
 
-	// Personal Nightmare 1.1c - EGA English DOS Floppy (Packed)
+	// Personal Nightmare 1.1c - EGA English DOS Floppy
 	{
 		{
 			"pn",
 			"Floppy",
 
 			{
-	{ "01.out",		GAME_VGAFILE,	"3a2a4c3e07dfbc4b309deade0af37baf", -1},
 	{ "icon.out",		GAME_ICONFILE,	"40d8347c3154bfa8b642d6860a4b9481", -1},
 	{ "night.dbm",		GAME_BASEFILE,	"177311ae059243f6a2740e950585d786", -1},
 	{ "night.txt",		GAME_TEXTFILE,	"861fc1fa0864eef585f5865dee52e325", -1},
@@ -115,29 +114,6 @@
 		GF_OLD_BUNDLE | GF_CRUNCHED | GF_EGA | GF_PLANAR
 	},
 
-	// Personal Nightmare 1.1c - EGA English DOS Floppy (Unpacked)
-	{
-		{
-			"pn",
-			"Floppy",
-
-			{
-	{ "01.out",		GAME_VGAFILE,	"7f3e2a7a3aad016ad1bf540fcbe031ca", -1},
-	{ "icon.out",		GAME_ICONFILE,	"40d8347c3154bfa8b642d6860a4b9481", -1},
-	{ "night.dbm",		GAME_BASEFILE,	"177311ae059243f6a2740e950585d786", -1},
-	{ "night.txt",		GAME_TEXTFILE,	"861fc1fa0864eef585f5865dee52e325", -1},
-	{ NULL, 0, NULL, 0}
-			},
-			Common::EN_ANY,
-			Common::kPlatformPC,
-			ADGF_NO_FLAGS
-		},
-
-		GType_PN,
-		GID_PN,
-		GF_OLD_BUNDLE | GF_EGA | GF_PLANAR
-	},
-
 	// Elvira 1 - English Amiga Floppy Demo
 	{
 		{

Modified: scummvm/trunk/engines/agos/res.cpp
===================================================================
--- scummvm/trunk/engines/agos/res.cpp	2009-05-07 09:49:13 UTC (rev 40368)
+++ scummvm/trunk/engines/agos/res.cpp	2009-05-07 12:05:44 UTC (rev 40369)
@@ -897,8 +897,14 @@
 			byte *dataOut = 0;
 			int dataOutSize = 0;
 
-			for (uint i = 0; i < srcSize / 4; ++i)
-				data.push(in.readUint32BE());
+			for (uint i = 0; i < srcSize / 4; ++i) {
+				uint32 dataVal = in.readUint32BE();
+				// Correct incorrect byte, in corrupt 72.out file, included in some PC versions.
+				if (dataVal == 168042714)
+					data.push(168050906);
+				else
+					data.push(dataVal);
+			}
 
 			decompressPN(data, dataOut, dataOutSize);
 			dst = allocBlock (dataOutSize + extraBuffer);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list