Skip to content

Commit 60c3441

Browse files
committed
Bump file limit to actual max size for NTFS and exFAT devices.
1 parent 219eae1 commit 60c3441

File tree

1 file changed

+3
-7
lines changed
  • xivModdingFramework/SqPack/FileTypes

1 file changed

+3
-7
lines changed

xivModdingFramework/SqPack/FileTypes/Dat.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,10 @@ private static long GetMaximumFileSize(string drive)
8686
case "FAT32":
8787
return 4294967296;
8888
case "NTFS":
89-
// This isn't the actual NTFS limit, but is a safety limit for now while we test higher DAT sizes. (8GB)
90-
// Theoretical offset-addressable maximum is 2^35 for DX11, NTFS DAT files. (28 Shift 7)
91-
return 8589934592;
89+
// 2 ^35 is the maximum addressable size in the Index files. (28 precision bits, left-shifted 7 bits (increments of 128)
90+
return 34359738368;
9291
case "exFAT":
93-
// exFAT devices are supposed to be able to take larger sizes, and it works for FFXIV
94-
// But in practice, TexTools can't access file pointers above 2GB on exFAT devices.
95-
// .NET thing probably.
96-
return 8589934592;
92+
return 34359738368;
9793
default:
9894
// Unknown HDD Format, default to the basic limit.
9995
return 2000000000;

0 commit comments

Comments
 (0)