[VFS] Oops, fix wrong BlockToOffset result for non-CON packages
This commit is contained in:
parent
ff5246facb
commit
a2037b15bc
|
@ -611,8 +611,7 @@ size_t StfsContainerDevice::BlockToOffsetSTFS(uint64_t block_index) {
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t num_tables = 1; // num hashtables per block? or maybe backingblocks?
|
uint32_t num_tables = 1; // num hashtables per block? or maybe backingblocks?
|
||||||
if (((header_.header_size + 0xFFF) & 0xB000) == 0xB000 ||
|
if ((header_.stfs_volume_descriptor.flags & 0x1) == 0x0) {
|
||||||
(header_.stfs_volume_descriptor.flags & 0x1) == 0x0) {
|
|
||||||
num_tables++;
|
num_tables++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue