aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-09-13 18:45:56 +0000
committerPaweł Kołodziejski2003-09-13 18:45:56 +0000
commitbd11fd12176a1ea76fbb2ceff8415658ea75b889 (patch)
treedd2ed4eeefd642b132da3ad0c4a2c30a1ccbd3fa
parent971fff61b88bbb49f9349f8e237a7c30df9a05e1 (diff)
downloadscummvm-rg350-bd11fd12176a1ea76fbb2ceff8415658ea75b889.tar.gz
scummvm-rg350-bd11fd12176a1ea76fbb2ceff8415658ea75b889.tar.bz2
scummvm-rg350-bd11fd12176a1ea76fbb2ceff8415658ea75b889.zip
remove path in filename at delete func too
svn-id: r10239
-rw-r--r--scumm/script_v6.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp
index 7d97d66da2..ad601e5915 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -2859,7 +2859,7 @@ void Scumm_v6::o6_openFile() {
else
error("o6_openFile(): wrong open file mode");
- warning("%d = o6_openFile(\"%s\", %d)", slot, filename, mode);
+ warning("%d = o6_openFile(\"%s\", %d)", slot, filename + r, mode);
}
push(slot);
}
@@ -2871,7 +2871,7 @@ void Scumm_v6::o6_closeFile() {
}
void Scumm_v6::o6_deleteFile() {
- int len;
+ int len, r;
byte filename[100];
_msgPtrToAdd = filename;
@@ -2881,7 +2881,12 @@ void Scumm_v6::o6_deleteFile() {
len = resStrLen(_scriptPointer);
_scriptPointer += len + 1;
- warning("stub o6_deleteFile(\"%s\")", filename);
+ for (r = strlen((char*)filename); r != 0; r--) {
+ if (filename[r - 1] == '\\')
+ break;
+ }
+
+ warning("stub o6_deleteFile(\"%s\")", filename + r);
}
int Scumm_v6::readFileToArray(int slot, int32 size) {