Skip to content

Commit 5e06001

Browse files
committed
Fix previous commit, use StartsWith instead of Equals
1 parent c32319d commit 5e06001

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CollapseLauncher/Classes/InstallManagement/Base/InstallManagerBase.Sophon.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,8 +961,8 @@ private ValueTask RunSophonAssetDownloadThread(HttpClient client,
961961

962962
// HACK: To avoid user unable to continue the download due to executable being downloaded completely,
963963
// append "_tempSophon" on it.
964-
string filename = Path.GetFileNameWithoutExtension(assetName);
965-
if (filename.Equals(GameVersionManager.GamePreset.GameExecutableName, StringComparison.OrdinalIgnoreCase))
964+
string filename = Path.GetFileName(assetName);
965+
if (filename.StartsWith(GameVersionManager.GamePreset.GameExecutableName ?? "", StringComparison.OrdinalIgnoreCase))
966966
{
967967
filePath += "_tempSophon";
968968
}

0 commit comments

Comments
 (0)