- cleanup.

- kyra.dat shouldn't be load by default.

svn-id: r30831
This commit is contained in:
Johannes Schickel 2008-02-08 18:45:25 +00:00
parent 02522a3a14
commit c98b51e40c

View file

@ -244,18 +244,18 @@ void Resource::unloadAllPakFiles() {
temp.close();
}
ResFileMap::iterator iter = _map.find("kyra.dat");
ResFileMap::iterator iter = _map.find(StaticResource::staticDataFilename());
if (iter == _map.end()) {
if (temp.open("kyra.dat")) {
if (temp.open(StaticResource::staticDataFilename())) {
ResFileEntry entry;
entry.parent = "";
entry.size = temp.size();
entry.loadable = true;
entry.loadable = false;
entry.preload = false;
entry.prot = false;
entry.type = ResFileEntry::kPak;
entry.offset = 0;
_map["kyra.dat"] = entry;
_map[StaticResource::staticDataFilename()] = entry;
temp.close();
}
} else {