Add back parenthesis (I wasn't aware of this convention, sorry) in saveload, and mimic this code in oPlaytoons_openItk
svn-id: r43464
This commit is contained in:
parent
b8fd79486f
commit
90336c88ac
2 changed files with 2 additions and 2 deletions
|
@ -150,7 +150,7 @@ void Inter_Playtoons::oPlaytoons_openItk() {
|
||||||
strcat(fileName, ".ITK");
|
strcat(fileName, ".ITK");
|
||||||
|
|
||||||
// Workaround for Bambou : In the script, the path is hardcoded (!!)
|
// Workaround for Bambou : In the script, the path is hardcoded (!!)
|
||||||
if ((backSlash = strrchr(fileName, '\\')) != 0) {
|
if ((backSlash = strrchr(fileName, '\\'))) {
|
||||||
debugC(2, kDebugFileIO, "Opening ITK file \"%s\" instead of \"%s\"", backSlash + 1, fileName);
|
debugC(2, kDebugFileIO, "Opening ITK file \"%s\" instead of \"%s\"", backSlash + 1, fileName);
|
||||||
_vm->_dataIO->openDataFile(backSlash + 1, true);
|
_vm->_dataIO->openDataFile(backSlash + 1, true);
|
||||||
} else
|
} else
|
||||||
|
|
|
@ -42,7 +42,7 @@ SaveLoad::~SaveLoad() {
|
||||||
|
|
||||||
const char *SaveLoad::stripPath(const char *fileName) {
|
const char *SaveLoad::stripPath(const char *fileName) {
|
||||||
const char *backSlash;
|
const char *backSlash;
|
||||||
if (backSlash = strrchr(fileName, '\\'))
|
if ((backSlash = strrchr(fileName, '\\')))
|
||||||
return backSlash + 1;
|
return backSlash + 1;
|
||||||
|
|
||||||
return fileName;
|
return fileName;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue