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
post_malone
florent.teppe 3 years ago
parent 58593a1e62
commit 4f832f479b

@ -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…
Cancel
Save