diff options
-rw-r--r-- | scumm/intern.h | 4 | ||||
-rw-r--r-- | scumm/script_v72he.cpp | 6 | ||||
-rw-r--r-- | scumm/script_v7he.cpp | 13 | ||||
-rw-r--r-- | scumm/script_v80he.cpp | 2 | ||||
-rw-r--r-- | scumm/script_v90he.cpp | 2 |
5 files changed, 11 insertions, 16 deletions
diff --git a/scumm/intern.h b/scumm/intern.h index bc3e17c8bf..d9d0723b7a 100644 --- a/scumm/intern.h +++ b/scumm/intern.h @@ -634,7 +634,7 @@ protected: void o7_writeINI(); void o7_unknownF5(); void o7_unknownF6(); - void o7_unknownF9(); + void o7_setFilePath(); void o7_unknownFA(); void o7_unknownFB(); void o7_unknownFC(); @@ -760,7 +760,7 @@ protected: void o72_unknownF5(); void o72_unknownF6(); void o72_unknownF8(); - void o72_unknownF9(); + void o72_setFilePath(); void o72_unknownFA(); }; diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index a460d7e9d3..52059b8de9 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -356,7 +356,7 @@ void ScummEngine_v72he::setupOpcodes() { OPCODE(o6_invalid), /* F8 */ OPCODE(o72_unknownF8), - OPCODE(o72_unknownF9), + OPCODE(o72_setFilePath), OPCODE(o72_unknownFA), OPCODE(o7_unknownFB), /* FC */ @@ -1913,11 +1913,11 @@ void ScummEngine_v72he::o72_unknownF8() { debug(1,"stub o72_unknownF8(%d)", a); } -void ScummEngine_v72he::o72_unknownF9() { +void ScummEngine_v72he::o72_setFilePath() { // File related byte filename[100]; copyScriptString(filename); - debug(1,"o72_unknownF9: %s", filename); + debug(1,"o72_setFilePath: %s", filename); } void ScummEngine_v72he::o72_unknownFA() { diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp index 7b17c7969a..53a9050c8b 100644 --- a/scumm/script_v7he.cpp +++ b/scumm/script_v7he.cpp @@ -357,7 +357,7 @@ void ScummEngine_v7he::setupOpcodes() { OPCODE(o6_invalid), /* F8 */ OPCODE(o6_invalid), - OPCODE(o7_unknownF9), + OPCODE(o7_setFilePath), OPCODE(o7_unknownFA), OPCODE(o7_unknownFB), /* FC */ @@ -986,9 +986,9 @@ void ScummEngine_v7he::o7_unknownF6() { debug(1,"stub o7_unknownF6"); } -void ScummEngine_v7he::o7_unknownF9() { +void ScummEngine_v7he::o7_setFilePath() { // File related - int len, r; + int len; byte filename[100]; addMessageToStack(_scriptPointer, filename, sizeof(filename)); @@ -996,12 +996,7 @@ void ScummEngine_v7he::o7_unknownF9() { len = resStrLen(_scriptPointer); _scriptPointer += len + 1; - for (r = strlen((char*)filename); r != 0; r--) { - if (filename[r - 1] == '\\') - break; - } - - debug(1,"stub o7_unknownF9(\"%s\")", filename + r); + debug(1,"stub o7_setFilePath(%s)", filename); } void ScummEngine_v7he::o7_unknownFA() { diff --git a/scumm/script_v80he.cpp b/scumm/script_v80he.cpp index dca1598eae..98d2cb8b65 100644 --- a/scumm/script_v80he.cpp +++ b/scumm/script_v80he.cpp @@ -356,7 +356,7 @@ void ScummEngine_v80he::setupOpcodes() { OPCODE(o6_invalid), /* F8 */ OPCODE(o72_unknownF8), - OPCODE(o72_unknownF9), + OPCODE(o72_setFilePath), OPCODE(o72_unknownFA), OPCODE(o7_unknownFB), /* FC */ diff --git a/scumm/script_v90he.cpp b/scumm/script_v90he.cpp index 6d98eadd51..8f3b3bf9ba 100644 --- a/scumm/script_v90he.cpp +++ b/scumm/script_v90he.cpp @@ -356,7 +356,7 @@ void ScummEngine_v90he::setupOpcodes() { OPCODE(o6_invalid), /* F8 */ OPCODE(o72_unknownF8), - OPCODE(o72_unknownF9), + OPCODE(o72_setFilePath), OPCODE(o72_unknownFA), OPCODE(o7_unknownFB), /* FC */ |