From 1ebd47dc0fb3d5d9634e638a9edfa3d0dd734468 Mon Sep 17 00:00:00 2001 From: emoose Date: Sun, 5 Jan 2020 20:33:09 +0000 Subject: [PATCH] [VFS] Oops, fix wrong BlockToOffset result for non-CON packages --- src/xenia/vfs/devices/stfs_container_device.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/xenia/vfs/devices/stfs_container_device.cc b/src/xenia/vfs/devices/stfs_container_device.cc index 29e069df5..75a395423 100644 --- a/src/xenia/vfs/devices/stfs_container_device.cc +++ b/src/xenia/vfs/devices/stfs_container_device.cc @@ -611,8 +611,7 @@ size_t StfsContainerDevice::BlockToOffsetSTFS(uint64_t block_index) { } uint32_t num_tables = 1; // num hashtables per block? or maybe backingblocks? - if (((header_.header_size + 0xFFF) & 0xB000) == 0xB000 || - (header_.stfs_volume_descriptor.flags & 0x1) == 0x0) { + if ((header_.stfs_volume_descriptor.flags & 0x1) == 0x0) { num_tables++; }