aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorJohannes Schickel2009-08-17 09:57:09 +0000
committerJohannes Schickel2009-08-17 09:57:09 +0000
commitb8fd79486faa728df92e0f8d95ee8d3cbe55c0d6 (patch)
tree45b54783df85101bc3ed3a0e6c736960124d1c30 /engines/gob
parente214755107596cf0350e0c411da12b267a36818d (diff)
downloadscummvm-rg350-b8fd79486faa728df92e0f8d95ee8d3cbe55c0d6.tar.gz
scummvm-rg350-b8fd79486faa728df92e0f8d95ee8d3cbe55c0d6.tar.bz2
scummvm-rg350-b8fd79486faa728df92e0f8d95ee8d3cbe55c0d6.zip
Formatting.
svn-id: r43463
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/inter.h2
-rw-r--r--engines/gob/inter_playtoons.cpp9
2 files changed, 5 insertions, 6 deletions
diff --git a/engines/gob/inter.h b/engines/gob/inter.h
index e8f39c8db8..057f52b360 100644
--- a/engines/gob/inter.h
+++ b/engines/gob/inter.h
@@ -560,7 +560,7 @@ protected:
bool oPlaytoons_checkData(OpFuncParams &params);
void oPlaytoons_CD_20_23();
void oPlaytoons_CD_25();
- void oPlaytoons_openItk();
+ void oPlaytoons_openItk();
};
} // End of namespace Gob
diff --git a/engines/gob/inter_playtoons.cpp b/engines/gob/inter_playtoons.cpp
index b4a3c36e99..ab7bf819cc 100644
--- a/engines/gob/inter_playtoons.cpp
+++ b/engines/gob/inter_playtoons.cpp
@@ -140,18 +140,17 @@ void Inter_Playtoons::oPlaytoons_CD_25() {
}
void Inter_Playtoons::oPlaytoons_openItk() {
-
char fileName[128];
char *backSlash;
-
+
_vm->_game->_script->evalExpr(0);
strncpy0(fileName, _vm->_game->_script->getResultStr(), 124);
-
+
if (!strchr(fileName, '.'))
strcat(fileName, ".ITK");
-
+
// Workaround for Bambou : In the script, the path is hardcoded (!!)
- if (backSlash=strrchr(fileName, '\\')) {
+ if ((backSlash = strrchr(fileName, '\\')) != 0) {
debugC(2, kDebugFileIO, "Opening ITK file \"%s\" instead of \"%s\"", backSlash + 1, fileName);
_vm->_dataIO->openDataFile(backSlash + 1, true);
} else