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;
if (!_bookIni.loadFromFile("book.ini")) {
_directoriesToStrip = 0;
if (!_bookIni.loadFromFile("programs/book.ini"))
error("failed to find book.ini");
if (!_bookIni.loadFromFile("programs/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;