We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7dc10a commit 59adec2Copy full SHA for 59adec2
CollapseLauncher/Classes/Interfaces/Class/ProgressBase.cs
@@ -444,7 +444,7 @@ protected async ValueTask FetchBilibiliSDK(CancellationToken token)
444
if (sdkDllFile != null)
445
{
446
// Try create the file if not exist or open an existing one
447
- await using (Stream sdkDllStream = sdkDllFile.Open(entry.Length < sdkDllFile.Length ? FileMode.Create : FileMode.OpenOrCreate))
+ await using (Stream sdkDllStream = sdkDllFile.Open(!sdkDllFile.Exists || entry.Length < sdkDllFile.Length ? FileMode.Create : FileMode.OpenOrCreate))
448
449
// Initiate the Crc32 hash
450
Crc32 hash = new Crc32();
0 commit comments