[Scummvm-cvs-logs] SF.net SVN: scummvm:[43463] scummvm/trunk/engines/gob
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Mon Aug 17 11:57:09 CEST 2009
Revision: 43463
http://scummvm.svn.sourceforge.net/scummvm/?rev=43463&view=rev
Author: lordhoto
Date: 2009-08-17 09:57:09 +0000 (Mon, 17 Aug 2009)
Log Message:
-----------
Formatting.
Modified Paths:
--------------
scummvm/trunk/engines/gob/inter.h
scummvm/trunk/engines/gob/inter_playtoons.cpp
Modified: scummvm/trunk/engines/gob/inter.h
===================================================================
--- scummvm/trunk/engines/gob/inter.h 2009-08-17 09:54:49 UTC (rev 43462)
+++ scummvm/trunk/engines/gob/inter.h 2009-08-17 09:57:09 UTC (rev 43463)
@@ -560,7 +560,7 @@
bool oPlaytoons_checkData(OpFuncParams ¶ms);
void oPlaytoons_CD_20_23();
void oPlaytoons_CD_25();
- void oPlaytoons_openItk();
+ void oPlaytoons_openItk();
};
} // End of namespace Gob
Modified: scummvm/trunk/engines/gob/inter_playtoons.cpp
===================================================================
--- scummvm/trunk/engines/gob/inter_playtoons.cpp 2009-08-17 09:54:49 UTC (rev 43462)
+++ scummvm/trunk/engines/gob/inter_playtoons.cpp 2009-08-17 09:57:09 UTC (rev 43463)
@@ -140,18 +140,17 @@
}
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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list