COMPOSER: Detect/run Mac versions of Darby/Gregory.

This commit is contained in:
Alyssa Milburn 2011-08-24 16:17:47 +02:00
parent 452280471b
commit ee87420b64
2 changed files with 32 additions and 2 deletions

View File

@ -81,8 +81,12 @@ Common::Error ComposerEngine::run() {
_directoriesToStrip = 1; _directoriesToStrip = 1;
if (!_bookIni.loadFromFile("book.ini")) { if (!_bookIni.loadFromFile("book.ini")) {
_directoriesToStrip = 0; _directoriesToStrip = 0;
if (!_bookIni.loadFromFile("programs/book.ini")) if (!_bookIni.loadFromFile("programs/book.ini")) {
error("failed to find book.ini"); // mac version?
if (!_bookIni.loadFromFile("Darby the Dragon.ini"))
if (!_bookIni.loadFromFile("Gregory.ini"))
error("failed to find book.ini");
}
} }
uint width = 640; uint width = 640;

View File

@ -124,6 +124,19 @@ static const ComposerGameDescription gameDescriptions[] = {
GType_ComposerV2 GType_ComposerV2
}, },
{
{
"darby",
0,
AD_ENTRY1("Darby the Dragon.ini", "d81f9214936fa70d42fc578908d4bb3d"),
Common::EN_ANY,
Common::kPlatformMacintosh,
ADGF_NO_FLAGS,
Common::GUIO_NONE
},
GType_ComposerV2
},
{ // Provided by Strangerke, "CD-Rom 100% Malin" Pack { // Provided by Strangerke, "CD-Rom 100% Malin" Pack
{ {
"darby", "darby",
@ -154,6 +167,19 @@ static const ComposerGameDescription gameDescriptions[] = {
GType_ComposerV2 GType_ComposerV2
}, },
{
{
"gregory",
0,
AD_ENTRY1("Gregory.ini", "fa82f14731f28c7379c5a106df07a0d6"),
Common::EN_ANY,
Common::kPlatformMacintosh,
ADGF_NO_FLAGS,
Common::GUIO_NONE
},
GType_ComposerV2
},
{ // Provided by Strangerke, "CD-Rom 100% Malin" Pack { // Provided by Strangerke, "CD-Rom 100% Malin" Pack
{ {
"gregory", "gregory",