diff options
author | Paweł Kołodziejski | 2003-09-13 12:37:21 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-09-13 12:37:21 +0000 |
commit | f02d38ce5ae19ab92512992db78bc39a2d10e95f (patch) | |
tree | 7dedb0ddc60ad285a7985ab4e2eb31509b41c1d7 | |
parent | 20fe2b83fceb139f9d08d5971595f66f9889df77 (diff) | |
download | scummvm-rg350-f02d38ce5ae19ab92512992db78bc39a2d10e95f.tar.gz scummvm-rg350-f02d38ce5ae19ab92512992db78bc39a2d10e95f.tar.bz2 scummvm-rg350-f02d38ce5ae19ab92512992db78bc39a2d10e95f.zip |
a little updated opcode: openFile and deleteFile
svn-id: r10221
-rw-r--r-- | scumm/script_v6.cpp | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp index cbb898f8c3..e7a6f23958 100644 --- a/scumm/script_v6.cpp +++ b/scumm/script_v6.cpp @@ -2828,11 +2828,18 @@ void Scumm_v6::o6_stopTalking() { void Scumm_v6::o6_openFile() { int a, len; - a = pop(); + byte filename[100]; + + _msgPtrToAdd = filename; + _messagePtr =_scriptPointer; + addMessageToStack(_messagePtr); + len = resStrLen(_scriptPointer); - warning("stub o6_openFile(\"%s\", %d)", _scriptPointer, a); _scriptPointer += len + 1; - // -1 open failed, otherwise file handle? + + a = pop(); + warning("stub o6_openFile(\"%s\", %d)", filename, a); + // -1 open failed, otherwise file slot push(0); } @@ -2843,9 +2850,16 @@ void Scumm_v6::o6_closeFile() { void Scumm_v6::o6_deleteFile() { int len; + byte filename[100]; + + _msgPtrToAdd = filename; + _messagePtr =_scriptPointer; + addMessageToStack(_messagePtr); + len = resStrLen(_scriptPointer); - warning("stub o6_deleteFile(\"%s\")", _scriptPointer); _scriptPointer += len + 1; + + warning("stub o6_deleteFile(\"%s\")", filename); } void Scumm_v6::o6_readFile() { |