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.)
This commit is contained in:
JosJuice 2020-08-22 22:26:55 +02:00
parent 800b2480ec
commit f7f0fa2d85
1 changed files with 1 additions and 1 deletions

View File

@ -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;