From 0ec634ea06d3e4f8506ab7dd1ddfdeedc3d28f23 Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Sun, 12 Aug 2007 13:54:31 +0000 Subject: Fixed location retrieval. svn-id: r28565 --- engines/parallaction/disk_br.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'engines/parallaction') 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); } -- cgit v1.2.3