Add loading of hard coded icon data in the AtariST version of PN.
svn-id: r39247
This commit is contained in:
parent
6ccb7bea5b
commit
b2ec405011
2 changed files with 9 additions and 0 deletions
|
@ -79,6 +79,7 @@ static const AGOSGameDescription gameDescriptions[] = {
|
||||||
{
|
{
|
||||||
{ "night.dbm", GAME_BASEFILE, "712c445d8e938956403a759978eab01b", -1},
|
{ "night.dbm", GAME_BASEFILE, "712c445d8e938956403a759978eab01b", -1},
|
||||||
{ "night.txt", GAME_TEXTFILE, "52630ad100f473a2cdc7c699536d6730", -1},
|
{ "night.txt", GAME_TEXTFILE, "52630ad100f473a2cdc7c699536d6730", -1},
|
||||||
|
{ "test.prg", GAME_ICONFILE, "0f316bbd7341a98c8d5f27d16fe50524", -1},
|
||||||
{ NULL, 0, NULL, 0}
|
{ NULL, 0, NULL, 0}
|
||||||
},
|
},
|
||||||
Common::EN_ANY,
|
Common::EN_ANY,
|
||||||
|
|
|
@ -56,6 +56,14 @@ void AGOSEngine::loadIconFile() {
|
||||||
|
|
||||||
decrunchFile(srcBuf, _iconFilePtr, srcSize);
|
decrunchFile(srcBuf, _iconFilePtr, srcSize);
|
||||||
free(srcBuf);
|
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 {
|
} else {
|
||||||
_iconFilePtr = (byte *)malloc(srcSize);
|
_iconFilePtr = (byte *)malloc(srcSize);
|
||||||
if (_iconFilePtr == NULL)
|
if (_iconFilePtr == NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue