1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 03:19:44 +00:00

Add comments

This commit is contained in:
Cédric Mocquillon 2023-03-03 13:27:40 +01:00
parent 24272d07bf
commit d73ab7ef6f
3 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,6 @@
namespace Bsa
{
// special marker for invalid records,
// equal to max uint32_t value
const uint32_t sInvalidOffset = std::numeric_limits<uint32_t>::max();
BA2GNRLFile::FileRecord::FileRecord()
@ -108,7 +107,7 @@ namespace Bsa
if (header[0] == 0x00415342) /*"BSA\x00"*/
fail("Unrecognized compressed BSA format");
mVersion = header[1];
if (mVersion != 0x01 /*F04*/)
if (mVersion != 0x01 /*FO4*/)
fail("Unrecognized compressed BSA version");
type = header[2];

View File

@ -365,6 +365,7 @@ 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[2] == ESM::fourCC("GNRL"))
return BSAVER_BA2_GNRL;
if (head[2] == ESM::fourCC("DX10"))

View File

@ -40,8 +40,8 @@ namespace Bsa
BSAVER_UNKNOWN = 0x0,
BSAVER_UNCOMPRESSED = 0x100,
BSAVER_COMPRESSED = 0x415342, // B, S, A,
BSAVER_BA2_GNRL,
BSAVER_BA2_DX10
BSAVER_BA2_GNRL, // used by FO4, BSA which contains files
BSAVER_BA2_DX10 // used by FO4, BSA which contains textures
};
/**