[Scummvm-cvs-logs] SF.net SVN: scummvm:[39247] scummvm/trunk/engines/agos
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Sun Mar 8 23:51:19 CET 2009
Revision: 39247
http://scummvm.svn.sourceforge.net/scummvm/?rev=39247&view=rev
Author: Kirben
Date: 2009-03-08 22:51:19 +0000 (Sun, 08 Mar 2009)
Log Message:
-----------
Add loading of hard coded icon data in the AtariST version of PN.
Modified Paths:
--------------
scummvm/trunk/engines/agos/detection_tables.h
scummvm/trunk/engines/agos/icons.cpp
Modified: scummvm/trunk/engines/agos/detection_tables.h
===================================================================
--- scummvm/trunk/engines/agos/detection_tables.h 2009-03-08 22:44:47 UTC (rev 39246)
+++ scummvm/trunk/engines/agos/detection_tables.h 2009-03-08 22:51:19 UTC (rev 39247)
@@ -79,6 +79,7 @@
{
{ "night.dbm", GAME_BASEFILE, "712c445d8e938956403a759978eab01b", -1},
{ "night.txt", GAME_TEXTFILE, "52630ad100f473a2cdc7c699536d6730", -1},
+ { "test.prg", GAME_ICONFILE, "0f316bbd7341a98c8d5f27d16fe50524", -1},
{ NULL, 0, NULL, 0}
},
Common::EN_ANY,
Modified: scummvm/trunk/engines/agos/icons.cpp
===================================================================
--- scummvm/trunk/engines/agos/icons.cpp 2009-03-08 22:44:47 UTC (rev 39246)
+++ scummvm/trunk/engines/agos/icons.cpp 2009-03-08 22:51:19 UTC (rev 39247)
@@ -56,6 +56,14 @@
decrunchFile(srcBuf, _iconFilePtr, srcSize);
free(srcBuf);
+ } else if (getGameType() == GType_PN && getPlatform() == Common::kPlatformAtariST) {
+ // The icon data is hard coded in the program file.
+ _iconFilePtr = (byte *)malloc(15038);
+ if (_iconFilePtr == NULL)
+ error("Out of icon memory");
+
+ in.seek(48414);
+ in.read(_iconFilePtr, 15038);
} else {
_iconFilePtr = (byte *)malloc(srcSize);
if (_iconFilePtr == NULL)
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