Fix detectVersion

depth-refraction
Cédric Mocquillon 2 years ago
parent 78251a2bb1
commit d2244c8d97

@ -365,12 +365,14 @@ BsaVersion Bsa::BSAFile::detectVersion(const std::filesystem::path& filePath)
if (head[0] == ESM::fourCC("BTDX"))
{
// head[1] should contains 0x01 it is checked if we want to open this kind of archive
if (head[1] == static_cast<uint32_t>(0x01))
{
if (head[2] == ESM::fourCC("GNRL"))
return BSAVER_BA2_GNRL;
if (head[2] == ESM::fourCC("DX10"))
return BSAVER_BA2_DX10;
return BSAVER_UNKNOWN;
}
return BSAVER_COMPRESSED;
}
return BSAVER_UNKNOWN;

Loading…
Cancel
Save