aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorMax Horn2004-06-27 22:14:35 +0000
committerMax Horn2004-06-27 22:14:35 +0000
commitb8ad54b3af1de97bf986e7e4d4da97f02ece3273 (patch)
tree59bb3fbadaa8857a75010692593bef3a866d49cb /sword2
parenta461c7550e2260601a63cd113a31254f2fd3ef50 (diff)
downloadscummvm-rg350-b8ad54b3af1de97bf986e7e4d4da97f02ece3273.tar.gz
scummvm-rg350-b8ad54b3af1de97bf986e7e4d4da97f02ece3273.tar.bz2
scummvm-rg350-b8ad54b3af1de97bf986e7e4d4da97f02ece3273.zip
Reversed param order of File::open() -- this allowed me to get rid of a few more getGameDataPath() calls
svn-id: r14090
Diffstat (limited to 'sword2')
-rw-r--r--sword2/resman.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sword2/resman.cpp b/sword2/resman.cpp
index a92ac23cf9..bd4eddd450 100644
--- a/sword2/resman.cpp
+++ b/sword2/resman.cpp
@@ -525,8 +525,8 @@ byte *ResourceManager::openResource(uint32 res, bool dump) {
sprintf(buf, "dumps/%s-%d.dmp", tag, res);
#endif
- if (!out.open(buf, "")) {
- if (out.open(buf, "", File::kFileWriteMode))
+ if (!out.open(buf, File::kFileReadMode, "")) {
+ if (out.open(buf, File::kFileWriteMode, ""))
out.write(_resList[res].ptr, len);
}