diff options
author | Travis Howell | 2007-06-16 02:43:31 +0000 |
---|---|---|
committer | Travis Howell | 2007-06-16 02:43:31 +0000 |
commit | 4362692684bf5d937b3fbffb6081acd2ee52e914 (patch) | |
tree | 3952e3b652d624df42d7de8bede12fed1ca1fbaf /engines/parallaction/disk.cpp | |
parent | ce8a015c1cd1f4521a3c748a190bd9ea0e28fb75 (diff) | |
download | scummvm-rg350-4362692684bf5d937b3fbffb6081acd2ee52e914.tar.gz scummvm-rg350-4362692684bf5d937b3fbffb6081acd2ee52e914.tar.bz2 scummvm-rg350-4362692684bf5d937b3fbffb6081acd2ee52e914.zip |
Add GF_LANG_MULT game flag, for detecting differences between the two Amiga versions.
svn-id: r27441
Diffstat (limited to 'engines/parallaction/disk.cpp')
-rw-r--r-- | engines/parallaction/disk.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
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); + } } |