diff options
author | Max Horn | 2004-11-27 15:09:53 +0000 |
---|---|---|
committer | Max Horn | 2004-11-27 15:09:53 +0000 |
commit | b78ac6a18b2cb851718ef84b04557f7fba8d399a (patch) | |
tree | 64e637229fef01b43835875a76444eea4ffd1a7f /sword2 | |
parent | 8d0ab890f8597c90d8f51caf1ed416e1df60848a (diff) | |
download | scummvm-rg350-b78ac6a18b2cb851718ef84b04557f7fba8d399a.tar.gz scummvm-rg350-b78ac6a18b2cb851718ef84b04557f7fba8d399a.tar.bz2 scummvm-rg350-b78ac6a18b2cb851718ef84b04557f7fba8d399a.zip |
Make use of our String class instead of juggling with char pointers; added File::exists method
svn-id: r15913
Diffstat (limited to 'sword2')
-rw-r--r-- | sword2/resman.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sword2/resman.cpp b/sword2/resman.cpp index 76f3799de0..16ea8c0d3e 100644 --- a/sword2/resman.cpp +++ b/sword2/resman.cpp @@ -512,13 +512,10 @@ byte *ResourceManager::openResource(uint32 res, bool dump) { sprintf(buf, "dumps/%s-%d.dmp", tag, res); #endif - if (!out.open(buf, File::kFileReadMode, "")) { + if (!out.exists(buf, "")) { if (out.open(buf, File::kFileWriteMode, "")) out.write(_resList[res].ptr, len); } - - if (out.isOpen()) - out.close(); } // close the cluster |