Skip to content

Commit 1924479

Browse files
authored
Merge pull request #40 from fosspill/patch-1
Default to large drive limit
2 parents db5e4e4 + 085c304 commit 1924479

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
@@ -114,30 +114,10 @@ private static long GetMaximumFileSize(string drive)
114114
return 2147483647;
115115
case "FAT32":
116116
return 4294967296;
117-
case "NTFS":
117+
default:
118+
// Unknown HDD Format, default to the max index limit.
118119
// 2 ^35 is the maximum addressable size in the Index files. (28 precision bits, left-shifted 7 bits (increments of 128)
119120
return 34359738368;
120-
case "exFAT":
121-
return 34359738368;
122-
case "ext2":
123-
return 34359738368;
124-
case "ext3":
125-
return 34359738368;
126-
case "ext4":
127-
return 34359738368;
128-
case "XFS":
129-
return 34359738368;
130-
case "btrfs":
131-
return 34359738368;
132-
case "ZFS":
133-
return 34359738368;
134-
case "ReiserFS":
135-
return 34359738368;
136-
case "apfs":
137-
return 34359738368;
138-
default:
139-
// Unknown HDD Format, default to the basic limit.
140-
return 2000000000;
141121
}
142122
}
143123

0 commit comments

Comments
 (0)