[Scummvm-cvs-logs] SF.net SVN: scummvm: [28726] scummvm/trunk/engines/saga/rscfile.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Sat Aug 25 18:44:44 CEST 2007
Revision: 28726
http://scummvm.svn.sourceforge.net/scummvm/?rev=28726&view=rev
Author: thebluegr
Date: 2007-08-25 09:44:44 -0700 (Sat, 25 Aug 2007)
Log Message:
-----------
Only close patch files for ITE, not IHNM
Modified Paths:
--------------
scummvm/trunk/engines/saga/rscfile.cpp
Modified: scummvm/trunk/engines/saga/rscfile.cpp
===================================================================
--- scummvm/trunk/engines/saga/rscfile.cpp 2007-08-25 16:02:48 UTC (rev 28725)
+++ scummvm/trunk/engines/saga/rscfile.cpp 2007-08-25 16:44:44 UTC (rev 28726)
@@ -330,7 +330,11 @@
if (resourceData->patchData->_patchFile->open(patchDescription->fileName)) {
resourceData->offset = 0;
resourceData->size = resourceData->patchData->_patchFile->size();
- resourceData->patchData->_patchFile->close();
+ // ITE uses several patch files which are loaded and then not needed
+ // anymore (as they're in memory), so close them here. IHNM uses only
+ // 1 patch file, which is reused, so don't close it
+ if (_vm->getGameType() == GType_ITE)
+ resourceData->patchData->_patchFile->close();
} else {
delete resourceData->patchData;
resourceData->patchData = NULL;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list