1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-21 10:09:41 +00:00

Merge branch 'FIX_COMPRESSED_BSA_LOAD' into 'master'

Fixes compressed BSA loading

Closes #6847

See merge request OpenMW/openmw!2075
This commit is contained in:
Alexei Kotov 2022-07-02 14:46:26 +00:00
commit 3ba39f977b

View file

@ -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);