- cleanup.
- kyra.dat shouldn't be load by default. svn-id: r30831
This commit is contained in:
parent
02522a3a14
commit
c98b51e40c
1 changed files with 4 additions and 4 deletions
|
@ -244,18 +244,18 @@ void Resource::unloadAllPakFiles() {
|
||||||
temp.close();
|
temp.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
ResFileMap::iterator iter = _map.find("kyra.dat");
|
ResFileMap::iterator iter = _map.find(StaticResource::staticDataFilename());
|
||||||
if (iter == _map.end()) {
|
if (iter == _map.end()) {
|
||||||
if (temp.open("kyra.dat")) {
|
if (temp.open(StaticResource::staticDataFilename())) {
|
||||||
ResFileEntry entry;
|
ResFileEntry entry;
|
||||||
entry.parent = "";
|
entry.parent = "";
|
||||||
entry.size = temp.size();
|
entry.size = temp.size();
|
||||||
entry.loadable = true;
|
entry.loadable = false;
|
||||||
entry.preload = false;
|
entry.preload = false;
|
||||||
entry.prot = false;
|
entry.prot = false;
|
||||||
entry.type = ResFileEntry::kPak;
|
entry.type = ResFileEntry::kPak;
|
||||||
entry.offset = 0;
|
entry.offset = 0;
|
||||||
_map["kyra.dat"] = entry;
|
_map[StaticResource::staticDataFilename()] = entry;
|
||||||
temp.close();
|
temp.close();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue