mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
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:
parent
800b2480ec
commit
f7f0fa2d85
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user