From 4362692684bf5d937b3fbffb6081acd2ee52e914 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 16 Jun 2007 02:43:31 +0000 Subject: Add GF_LANG_MULT game flag, for detecting differences between the two Amiga versions. svn-id: r27441 --- engines/parallaction/disk.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'engines/parallaction/disk.cpp') diff --git a/engines/parallaction/disk.cpp b/engines/parallaction/disk.cpp index b44485455f..93a5840fb5 100644 --- a/engines/parallaction/disk.cpp +++ b/engines/parallaction/disk.cpp @@ -1150,11 +1150,19 @@ Font* AmigaFullDisk::loadFont(const char* name) { char path[PATH_LEN]; sprintf(path, "%sfont", name); - Common::File stream; - if (!stream.open(path)) - errorFileNotFound(path); + if (_vm->getFeatures() & GF_LANG_MULT) { + if (!_resArchive.openArchivedFile(path)) + errorFileNotFound(path); - return createFont(name, stream); + return createFont(name, _resArchive); + } else { + // Italian version has separate font files? + Common::File stream; + if (!stream.open(path)) + errorFileNotFound(path); + + return createFont(name, stream); + } } -- cgit v1.2.3