diff options
author | Travis Howell | 2007-04-08 11:50:31 +0000 |
---|---|---|
committer | Travis Howell | 2007-04-08 11:50:31 +0000 |
commit | 0673fa4aa53abc3f52d8f413d9e035b6392bae21 (patch) | |
tree | ba4afd8966fb85af449f15566fa19021eb1e8598 /engines/scumm/he/script_v72he.cpp | |
parent | 65472233f209b81b44d3d0a50723d27a6a9c9db4 (diff) | |
download | scummvm-rg350-0673fa4aa53abc3f52d8f413d9e035b6392bae21.tar.gz scummvm-rg350-0673fa4aa53abc3f52d8f413d9e035b6392bae21.tar.bz2 scummvm-rg350-0673fa4aa53abc3f52d8f413d9e035b6392bae21.zip |
Rename setFilePath opcode to createDirectory, in order to reflect the opcodes true purpose.
svn-id: r26418
Diffstat (limited to 'engines/scumm/he/script_v72he.cpp')
-rw-r--r-- | engines/scumm/he/script_v72he.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/engines/scumm/he/script_v72he.cpp b/engines/scumm/he/script_v72he.cpp index 2258ea58d6..518eb7d765 100644 --- a/engines/scumm/he/script_v72he.cpp +++ b/engines/scumm/he/script_v72he.cpp @@ -357,7 +357,7 @@ void ScummEngine_v72he::setupOpcodes() { OPCODE(o70_findBox), /* F8 */ OPCODE(o72_getResourceSize), - OPCODE(o72_setFilePath), + OPCODE(o72_createDirectory), OPCODE(o72_setSystemMessage), OPCODE(o70_polygonOps), /* FC */ @@ -2124,6 +2124,9 @@ void ScummEngine_v72he::o72_readINI() { case 7: // string writeVar(0, 0); if (!strcmp((char *)option, "SaveGamePath")) { + // We set SaveGamePath in order to detect where it used + // in convertFilePath and to avoid warning about invalid + // path in Macintosh verisons. data = defineArray(0, kStringArray, 0, 0, 0, 1); memcpy(data, (const char *)"*", 1); } else { @@ -2220,11 +2223,11 @@ void ScummEngine_v72he::o72_getResourceSize() { push(size); } -void ScummEngine_v72he::o72_setFilePath() { - byte filename[255]; +void ScummEngine_v72he::o72_createDirectory() { + byte directoryName[255]; - copyScriptString(filename, sizeof(filename)); - debug(1,"o72_setFilePath: %s", filename); + copyScriptString(directoryName, sizeof(directoryName)); + debug(1,"o72_createDirectory: %s", directoryName); } void ScummEngine_v72he::o72_setSystemMessage() { |