aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/disk.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2007-05-12 19:29:20 +0000
committerNicola Mettifogo2007-05-12 19:29:20 +0000
commitd0635b8677e6e8f47e1885ed01451b320b9e6f5f (patch)
treee4d811e64b7c8ce0a8e533abff5ea8266eda6555 /engines/parallaction/disk.cpp
parenta152065609dc4370d316a08669583e9de75c68cc (diff)
downloadscummvm-rg350-d0635b8677e6e8f47e1885ed01451b320b9e6f5f.tar.gz
scummvm-rg350-d0635b8677e6e8f47e1885ed01451b320b9e6f5f.tar.bz2
scummvm-rg350-d0635b8677e6e8f47e1885ed01451b320b9e6f5f.zip
New debug strings and levels.
svn-id: r26812
Diffstat (limited to 'engines/parallaction/disk.cpp')
-rw-r--r--engines/parallaction/disk.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/parallaction/disk.cpp b/engines/parallaction/disk.cpp
index d1f237773a..3cffbf05af 100644
--- a/engines/parallaction/disk.cpp
+++ b/engines/parallaction/disk.cpp
@@ -246,16 +246,22 @@ Script* DosDisk::loadLocation(const char *name) {
if (IS_MINI_CHARACTER(_vm->_characterName)) {
sprintf(archivefile, "%s%s", _vm->_characterName+4, _languageDir);
} else {
- if (IS_DUMMY_CHARACTER(_vm->_characterName)) strcpy(archivefile, _languageDir);
- else {
+ if (IS_DUMMY_CHARACTER(_vm->_characterName)) {
+ strcpy(archivefile, _languageDir);
+ } else {
sprintf(archivefile, "%s%s", _vm->_characterName, _languageDir);
}
}
+
strcat(archivefile, name);
strcat(archivefile, ".loc");
+ debugC(3, kDebugDisk, "DosDisk::loadLocation(%s): trying '%s'", name, archivefile);
+
if (!_locArchive.openArchivedFile(archivefile)) {
sprintf(archivefile, "%s%s.loc", _languageDir, name);
+ debugC(3, kDebugDisk, "DosDisk::loadLocation(%s): trying '%s'", name, archivefile);
+
if (!_locArchive.openArchivedFile(archivefile))
errorFileNotFound(name);
}