aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v6.cpp
diff options
context:
space:
mode:
authorJonathan Gray2003-02-15 09:39:52 +0000
committerJonathan Gray2003-02-15 09:39:52 +0000
commitabe76691bc20024611e7044fcbd42426e1477542 (patch)
tree3942659e808490f3a1dad77306b34d471a132553 /scumm/script_v6.cpp
parentd054457496883bc4ae85700f9bcfae38628e6f2a (diff)
downloadscummvm-rg350-abe76691bc20024611e7044fcbd42426e1477542.tar.gz
scummvm-rg350-abe76691bc20024611e7044fcbd42426e1477542.tar.bz2
scummvm-rg350-abe76691bc20024611e7044fcbd42426e1477542.zip
add stubs for openFile closeFile and deleteFile opcodes
svn-id: r6608
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r--scumm/script_v6.cpp28
1 files changed, 25 insertions, 3 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp
index c90242f516..eb1f84078b 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -314,13 +314,13 @@ void Scumm_v6::setupOpcodes()
OPCODE(o6_bor),
/* D8 */
OPCODE(o6_isRoomScriptRunning),
- OPCODE(o6_invalid),
- OPCODE(o6_invalid),
+ OPCODE(o6_closeFile),
+ OPCODE(o6_openFile),
OPCODE(o6_invalid),
/* DC */
OPCODE(o6_invalid),
OPCODE(o6_invalid),
- OPCODE(o6_invalid),
+ OPCODE(o6_deleteFile),
OPCODE(o6_invalid),
/* E0 */
OPCODE(o6_invalid),
@@ -2904,6 +2904,28 @@ void Scumm_v6::o6_stopTalking() {
warning("o6_stopTalking: stub");
}
+void Scumm_v6::o6_openFile() {
+ int a, b, len;
+ a = pop();
+ len = resStrLen(_scriptPointer);
+ warning("stub o6_openFile(\"%s\", %d)", _scriptPointer, a);
+ _scriptPointer += len + 1;
+ // -1 open failed, otherwise file handle?
+ push(0);
+}
+
+void Scumm_v6::o6_closeFile() {
+ // pop'd variable should be that pushed in o6_openFile()
+ warning("stub o6_closeFile(%d)", pop());
+}
+
+void Scumm_v6::o6_deleteFile() {
+ int len;
+ len = resStrLen(_scriptPointer);
+ warning("stub o6_deleteFile(\"%s\")", _scriptPointer);
+ _scriptPointer += len + 1;
+}
+
void Scumm_v6::decodeParseString(int m, int n)
{
byte b;