diff options
author | Max Horn | 2004-06-27 22:14:35 +0000 |
---|---|---|
committer | Max Horn | 2004-06-27 22:14:35 +0000 |
commit | b8ad54b3af1de97bf986e7e4d4da97f02ece3273 (patch) | |
tree | 59bb3fbadaa8857a75010692593bef3a866d49cb /sword2 | |
parent | a461c7550e2260601a63cd113a31254f2fd3ef50 (diff) | |
download | scummvm-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.cpp | 4 |
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); } |