Skip to content

Commit 085c304

Browse files
author
fosspill
authored
Default to large drive limit
1 parent 0d5f74d commit 085c304

File tree

1 file changed

+2
-22
lines changed
  • xivModdingFramework/SqPack/FileTypes

1 file changed

+2
-22
lines changed

xivModdingFramework/SqPack/FileTypes/Dat.cs

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -88,30 +88,10 @@ private static long GetMaximumFileSize(string drive)
8888
return 2147483647;
8989
case "FAT32":
9090
return 4294967296;
91-
case "NTFS":
91+
default:
92+
// Unknown HDD Format, default to the max index limit.
9293
// 2 ^35 is the maximum addressable size in the Index files. (28 precision bits, left-shifted 7 bits (increments of 128)
9394
return 34359738368;
94-
case "exFAT":
95-
return 34359738368;
96-
case "ext2":
97-
return 34359738368;
98-
case "ext3":
99-
return 34359738368;
100-
case "ext4":
101-
return 34359738368;
102-
case "XFS":
103-
return 34359738368;
104-
case "btrfs":
105-
return 34359738368;
106-
case "ZFS":
107-
return 34359738368;
108-
case "ReiserFS":
109-
return 34359738368;
110-
case "apfs":
111-
return 34359738368;
112-
default:
113-
// Unknown HDD Format, default to the basic limit.
114-
return 2000000000;
11595
}
11696
}
11797

0 commit comments

Comments
 (0)