[Scummvm-cvs-logs] CVS: scummvm/scumm script_v6.cpp,1.187,1.188
Pawel Kolodziejski
aquadran at users.sourceforge.net
Sat Sep 13 05:38:07 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv17422
Modified Files:
script_v6.cpp
Log Message:
a little updated opcode: openFile and deleteFile
Index: script_v6.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v6.cpp,v
retrieving revision 1.187
retrieving revision 1.188
diff -u -d -r1.187 -r1.188
--- script_v6.cpp 11 Sep 2003 22:00:35 -0000 1.187
+++ script_v6.cpp 13 Sep 2003 12:37:21 -0000 1.188
@@ -2828,11 +2828,18 @@
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_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() {
More information about the Scummvm-git-logs
mailing list