diff options
| author | JosJuice <josjuice@gmail.com> | 2020-08-22 22:26:55 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2020-08-22 22:26:55 +0200 |
| commit | f7f0fa2d855c889b093b8ffb4739a1971051b10c (patch) | |
| tree | faa67bd0ca9f2886814151af43be96cb7fc370de /Source/Core/DiscIO | |
| parent | 800b2480ecb0d5d0285c6d560fb25f6b96c3b021 (diff) | |
DiscIO: Adjust WIA/RVZ header size heuristic
The heuristic was not allocating enough space for Metroid: Other M,
at least when using the default settings. (This didn't break the
file, it just caused some headers to be placed at the end of the
file instead of at the start and wasted a few hundred kilobytes.)
Diffstat (limited to 'Source/Core/DiscIO')
| -rw-r--r-- | Source/Core/DiscIO/WIABlob.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/WIABlob.cpp b/Source/Core/DiscIO/WIABlob.cpp index 94c3fc12c3..3faa4c38c2 100644 --- a/Source/Core/DiscIO/WIABlob.cpp +++ b/Source/Core/DiscIO/WIABlob.cpp @@ -1752,7 +1752,7 @@ WIARVZFileReader<RVZ>::Convert(BlobReader* infile, const VolumeDisc* infile_volu // RVZ's added data in GroupEntry usually compresses well if (RVZ && compression_type > WIARVZCompressionType::Purge) - upper_bound += group_entries_size / 2; + upper_bound += static_cast<u64>(group_entries_size) * 9 / 16; else upper_bound += group_entries_size; |
