diff options
| author | Léo Lam <leo@leolam.fr> | 2021-02-27 22:04:07 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2021-03-04 18:41:13 +0100 |
| commit | aef0760efe7e52cd2087e99efa9cb3e9a493353b (patch) | |
| tree | 2cebb07c8bf23106b8750f7cda091d9a479fb0f6 /Source/Core/DiscIO | |
| parent | bdaac718acf553da4b5f32d77886e212b4bc8967 (diff) | |
IOS/ES: Emulate /sys/launch.sys for more accurate timings
Also gets rid of one static variable
Diffstat (limited to 'Source/Core/DiscIO')
| -rw-r--r-- | Source/Core/DiscIO/DirectoryBlob.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/DirectoryBlob.cpp b/Source/Core/DiscIO/DirectoryBlob.cpp index 8840283777..5210bf1032 100644 --- a/Source/Core/DiscIO/DirectoryBlob.cpp +++ b/Source/Core/DiscIO/DirectoryBlob.cpp @@ -584,7 +584,6 @@ void DirectoryBlobReader::SetPartitionHeader(DirectoryBlobPartition* partition, constexpr u32 TICKET_OFFSET = 0x0; constexpr u32 TICKET_SIZE = 0x2a4; constexpr u32 TMD_OFFSET = 0x2c0; - constexpr u32 MAX_TMD_SIZE = 0x49e4; constexpr u32 H3_OFFSET = 0x4000; constexpr u32 H3_SIZE = 0x18000; @@ -594,7 +593,7 @@ void DirectoryBlobReader::SetPartitionHeader(DirectoryBlobPartition* partition, partition_address + TICKET_OFFSET, TICKET_SIZE, partition_root + "ticket.bin"); const u64 tmd_size = m_nonpartition_contents.CheckSizeAndAdd( - partition_address + TMD_OFFSET, MAX_TMD_SIZE, partition_root + "tmd.bin"); + partition_address + TMD_OFFSET, IOS::ES::MAX_TMD_SIZE, partition_root + "tmd.bin"); const u64 cert_offset = Common::AlignUp(TMD_OFFSET + tmd_size, 0x20ull); const u64 max_cert_size = H3_OFFSET - cert_offset; |
