aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2006-04-16 12:23:37 +0000
committerMax Horn2006-04-16 12:23:37 +0000
commit453aad9ec382fe34197a6a3c4b53262a64b2f7cc (patch)
treed51f22998b5d0f8946a64a6da0f5b74c86b4da4b /engines
parent924ec172ff6604ff0a701c00517038e6170f7267 (diff)
downloadscummvm-rg350-453aad9ec382fe34197a6a3c4b53262a64b2f7cc.tar.gz
scummvm-rg350-453aad9ec382fe34197a6a3c4b53262a64b2f7cc.tar.bz2
scummvm-rg350-453aad9ec382fe34197a6a3c4b53262a64b2f7cc.zip
Do not override the 'directory' param when dumping BS2 resources
svn-id: r21935
Diffstat (limited to 'engines')
-rw-r--r--engines/sword2/resman.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword2/resman.cpp b/engines/sword2/resman.cpp
index 506634097e..b8ed077031 100644
--- a/engines/sword2/resman.cpp
+++ b/engines/sword2/resman.cpp
@@ -299,8 +299,8 @@ byte *ResourceManager::openResource(uint32 res, bool dump) {
sprintf(buf, "dumps/%s-%d.dmp", tag, res);
#endif
- if (!out.exists(buf, "")) {
- if (out.open(buf, Common::File::kFileWriteMode, ""))
+ if (!out.exists(buf)) {
+ if (out.open(buf, Common::File::kFileWriteMode))
out.write(_resList[res].ptr, len);
}
}