mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 15:39:48 +00:00
Fixes compressed BSA loading
When creating the folders map, the folder name without / is hashed, but when trying to get a file record, when looking for a folder it was hashed wit the / So now in getFileRecord parent_path is used instead
This commit is contained in:
parent
58593a1e62
commit
4f832f479b
1 changed files with 2 additions and 3 deletions
|
@ -307,9 +307,8 @@ CompressedBSAFile::FileRecord CompressedBSAFile::getFileRecord(const std::string
|
|||
std::filesystem::path p(path);
|
||||
std::string stem = p.stem().string();
|
||||
std::string ext = p.extension().string();
|
||||
p.remove_filename();
|
||||
|
||||
std::string folder = p.string();
|
||||
|
||||
std::string folder = p.parent_path().string();
|
||||
std::uint64_t folderHash = generateHash(folder, std::string());
|
||||
|
||||
auto it = mFolders.find(folderHash);
|
||||
|
|
Loading…
Reference in a new issue