diff options
author | Nicola Mettifogo | 2007-08-12 13:54:31 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-08-12 13:54:31 +0000 |
commit | 0ec634ea06d3e4f8506ab7dd1ddfdeedc3d28f23 (patch) | |
tree | d59db5650343a6c4389ba09b77fd710991fc78e6 /engines/parallaction/disk_br.cpp | |
parent | 12d9e7aed91d853903674bfc04e648d8ded086d0 (diff) | |
download | scummvm-rg350-0ec634ea06d3e4f8506ab7dd1ddfdeedc3d28f23.tar.gz scummvm-rg350-0ec634ea06d3e4f8506ab7dd1ddfdeedc3d28f23.tar.bz2 scummvm-rg350-0ec634ea06d3e4f8506ab7dd1ddfdeedc3d28f23.zip |
Fixed location retrieval.
svn-id: r28565
Diffstat (limited to 'engines/parallaction/disk_br.cpp')
-rw-r--r-- | engines/parallaction/disk_br.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/engines/parallaction/disk_br.cpp b/engines/parallaction/disk_br.cpp index 63ec2e3667..cb33bdb485 100644 --- a/engines/parallaction/disk_br.cpp +++ b/engines/parallaction/disk_br.cpp @@ -87,14 +87,15 @@ Cnv* DosDisk_br::loadTalk(const char *name) { Script* DosDisk_br::loadLocation(const char *name) { debugC(5, kDebugDisk, "DosDisk_br::loadLocation"); - char path[PATH_LEN]; - sprintf(path, "%s/%s/%s.loc", _partPath, _languageDir, name); - - debugC(3, kDebugDisk, "DosDisk_br::loadLocation(%s): trying '%s'", name, path); - Common::File stream; - if (!stream.open(path)) - errorFileNotFound(path); + + char path[PATH_LEN]; + sprintf(path, "%s/%s/%s.slf", _partPath, _languageDir, name); + if (!stream.open(path)) { + sprintf(path, "%s/%s/%s.loc", _partPath, _languageDir, name); + if (!stream.open(path)) + errorFileNotFound(path); + } return new Script(&stream, false); } |