diff options
author | Johannes Schickel | 2008-02-08 18:45:25 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-02-08 18:45:25 +0000 |
commit | c98b51e40c126da037d44ee5e097cf08f33e442a (patch) | |
tree | 2dc7b1f2a3ec1adf867f0a30265274b00975e4bb /engines/kyra/resource.cpp | |
parent | 02522a3a144cad030262533506baafa0460056a6 (diff) | |
download | scummvm-rg350-c98b51e40c126da037d44ee5e097cf08f33e442a.tar.gz scummvm-rg350-c98b51e40c126da037d44ee5e097cf08f33e442a.tar.bz2 scummvm-rg350-c98b51e40c126da037d44ee5e097cf08f33e442a.zip |
- cleanup.
- kyra.dat shouldn't be load by default.
svn-id: r30831
Diffstat (limited to 'engines/kyra/resource.cpp')
-rw-r--r-- | engines/kyra/resource.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/kyra/resource.cpp b/engines/kyra/resource.cpp index cbb39596c9..d8e4eb2f5e 100644 --- a/engines/kyra/resource.cpp +++ b/engines/kyra/resource.cpp @@ -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 { |