[VFS] Fix STFS file table info being read in wrong endian

This commit is contained in:
emoose 2019-12-26 05:22:10 +00:00 committed by illusion
parent 7e6e02e685
commit df40ed6ea4
1 changed files with 2 additions and 2 deletions

View File

@ -648,8 +648,8 @@ bool StfsVolumeDescriptor::Read(const uint8_t* p) {
}
version = xe::load_and_swap<uint8_t>(p + 0x01);
flags = xe::load_and_swap<uint8_t>(p + 0x02);
file_table_block_count = xe::load_and_swap<uint16_t>(p + 0x03);
file_table_block_number = load_uint24_be(p + 0x05);
file_table_block_count = xe::load<uint16_t>(p + 0x03);
file_table_block_number = load_uint24_le(p + 0x05);
std::memcpy(top_hash_table_hash, p + 0x08, 0x14);
total_allocated_block_count = xe::load_and_swap<uint32_t>(p + 0x1C);
total_unallocated_block_count = xe::load_and_swap<uint32_t>(p + 0x20);