From b8ad54b3af1de97bf986e7e4d4da97f02ece3273 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 27 Jun 2004 22:14:35 +0000 Subject: Reversed param order of File::open() -- this allowed me to get rid of a few more getGameDataPath() calls svn-id: r14090 --- sword2/resman.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sword2') 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); } -- cgit v1.2.3