aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2009-03-08 22:51:19 +0000
committerTravis Howell2009-03-08 22:51:19 +0000
commitb2ec4050119d8a2cbfef8a7cdcb7c96051a4b63e (patch)
tree418dfb2e733fa60bf064faa05de95b595c978ed8 /engines
parent6ccb7bea5b1ec48b4a212ff94464d687f9730b08 (diff)
downloadscummvm-rg350-b2ec4050119d8a2cbfef8a7cdcb7c96051a4b63e.tar.gz
scummvm-rg350-b2ec4050119d8a2cbfef8a7cdcb7c96051a4b63e.tar.bz2
scummvm-rg350-b2ec4050119d8a2cbfef8a7cdcb7c96051a4b63e.zip
Add loading of hard coded icon data in the AtariST version of PN.
svn-id: r39247
Diffstat (limited to 'engines')
-rw-r--r--engines/agos/detection_tables.h1
-rw-r--r--engines/agos/icons.cpp8
2 files changed, 9 insertions, 0 deletions
diff --git a/engines/agos/detection_tables.h b/engines/agos/detection_tables.h
index 43c225697d..e752b59ba8 100644
--- a/engines/agos/detection_tables.h
+++ b/engines/agos/detection_tables.h
@@ -79,6 +79,7 @@ static const AGOSGameDescription gameDescriptions[] = {
{
{ "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,
diff --git a/engines/agos/icons.cpp b/engines/agos/icons.cpp
index 641e79e4a6..c0ca9c67fe 100644
--- a/engines/agos/icons.cpp
+++ b/engines/agos/icons.cpp
@@ -56,6 +56,14 @@ void AGOSEngine::loadIconFile() {
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)