[Scummvm-cvs-logs] SF.net SVN: scummvm: [30821] scummvm/trunk/engines/kyra/resource.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Fri Feb 8 00:14:54 CET 2008
Revision: 30821
http://scummvm.svn.sourceforge.net/scummvm/?rev=30821&view=rev
Author: lordhoto
Date: 2008-02-07 15:14:53 -0800 (Thu, 07 Feb 2008)
Log Message:
-----------
Fixed regression introduced while reworking resource loading code.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/resource.cpp
Modified: scummvm/trunk/engines/kyra/resource.cpp
===================================================================
--- scummvm/trunk/engines/kyra/resource.cpp 2008-02-07 23:13:13 UTC (rev 30820)
+++ scummvm/trunk/engines/kyra/resource.cpp 2008-02-07 23:14:53 UTC (rev 30821)
@@ -96,6 +96,12 @@
};
Common::for_each(list, list + ARRAYSIZE(list), Common::bind1st(Common::mem_fun(&Resource::loadPakFile), this));
+
+ for (int i = 0; i < ARRAYSIZE(list); ++i) {
+ ResFileMap::iterator iterator = _map.find(list[i]);
+ if (iterator != _map.end())
+ iterator->_value.prot = true;
+ }
} else {
for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) {
Common::String filename = file->getName();
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