diff options
author | Travis Howell | 2005-03-17 11:06:43 +0000 |
---|---|---|
committer | Travis Howell | 2005-03-17 11:06:43 +0000 |
commit | f50af11b5d99c1a6e8327261bfe1a3b3cae51dcc (patch) | |
tree | 57d4da26424df51f50386b5bb6542a2f5b6540d0 /scumm/script_v72he.cpp | |
parent | 4361ef655eb1619f91282c07c763151d1186224d (diff) | |
download | scummvm-rg350-f50af11b5d99c1a6e8327261bfe1a3b3cae51dcc.tar.gz scummvm-rg350-f50af11b5d99c1a6e8327261bfe1a3b3cae51dcc.tar.bz2 scummvm-rg350-f50af11b5d99c1a6e8327261bfe1a3b3cae51dcc.zip |
Add HE72 version of file rename opcode
svn-id: r17175
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r-- | scumm/script_v72he.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp index 3f78d52698..f91d984f35 100644 --- a/scumm/script_v72he.cpp +++ b/scumm/script_v72he.cpp @@ -322,7 +322,7 @@ void ScummEngine_v72he::setupOpcodes() { OPCODE(o72_writeFile), OPCODE(o72_findAllObjects), OPCODE(o72_deleteFile), - OPCODE(o60_rename), + OPCODE(o72_rename), /* E0 */ OPCODE(o60_soundOps), OPCODE(o72_getPixel), @@ -1472,7 +1472,7 @@ void ScummEngine_v72he::o72_talkActor() { void ScummEngine_v72he::o72_talkEgo() { push(VAR(VAR_EGO)); - o6_talkActor(); + o72_talkActor(); } void ScummEngine_v72he::o72_dimArray() { @@ -1807,15 +1807,18 @@ void ScummEngine_v72he::o72_findAllObjects() { void ScummEngine_v72he::o72_deleteFile() { byte filename[100]; - int r; copyScriptString(filename); - for (r = strlen((char*)filename); r != 0; r--) { - if (filename[r - 1] == '\\') - break; - } + debug(1, "stub o72_deleteFile(%s)", filename); +} + +void ScummEngine_v72he::o72_rename() { + byte oldFilename[256],newFilename[256]; + + copyScriptString(newFilename); + copyScriptString(oldFilename); - debug(1, "stub o72_deleteFile(%s)", filename + r); + debug(1, "stub o72_rename(%s to %s)", oldFilename, newFilename); } void ScummEngine_v72he::o72_getPixel() { |