Skip to content
This repository was archived by the owner on Jul 26, 2025. It is now read-only.

Commit d30c853

Browse files
committed
Lax file size check for game zip
1 parent 83af42f commit d30c853

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

WinterspringLauncher/LauncherActions.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,10 @@ public static bool ContainsValidGameZip(bool weAreOnMacOs)
336336
return false;
337337

338338
long existingFileLength = new FileInfo(downloadedFile).Length;
339-
long expectedFileLength = weAreOnMacOs ? 8611510296 : 8004342849;
340-
return existingFileLength == expectedFileLength;
339+
return existingFileLength > (5L * 1024 * 1024 * 1024); // more than 5 GB should be the correct size
340+
// Old check:
341+
// long expectedFileLength = weAreOnMacOs ? 8611510296 : 8004342849;
342+
// return existingFileLength == expectedFileLength;
341343
}
342344

343345
public static void DownloadGameClientZip((string? provider, string downloadUrl) downloadSource)

0 commit comments

Comments
 (0)