mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DATFromDir] Lower the large-file threshold for Romba mode
This commit is contained in:
@@ -491,8 +491,8 @@ namespace SabreTools
|
|||||||
string gzsize = BitConverter.ToString(footer.Reverse().ToArray()).Replace("-", string.Empty);
|
string gzsize = BitConverter.ToString(footer.Reverse().ToArray()).Replace("-", string.Empty);
|
||||||
long extractedsize = Convert.ToInt64(gzsize, 16);
|
long extractedsize = Convert.ToInt64(gzsize, 16);
|
||||||
|
|
||||||
// Only try to add if the file size is greater than 2.5 GiB
|
// Only try to add if the file size is greater than 1 GiB
|
||||||
if (filesize >= (2.5 * Constants.GibiByte))
|
if (filesize >= (Constants.GibiByte))
|
||||||
{
|
{
|
||||||
// ISIZE is mod 4GiB, so we add that if the ISIZE is smaller than the filesize and header
|
// ISIZE is mod 4GiB, so we add that if the ISIZE is smaller than the filesize and header
|
||||||
if (extractedsize < (filesize - neededHeaderSize))
|
if (extractedsize < (filesize - neededHeaderSize))
|
||||||
|
|||||||
Reference in New Issue
Block a user