Skip to content

Commit eed9d83

Browse files
committed
Fixed outdated Delta Patch still used in latest update
1 parent 316195e commit eed9d83

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

CollapseLauncher/Classes/InstallManagement/InstallManagement.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,15 @@ private void ApplyParameter()
112112

113113
private bool CheckDeltaPatchUpdate()
114114
{
115-
string[] GamePaths = Directory.GetFiles(this.GameDirPath, "*.patch", SearchOption.TopDirectoryOnly);
115+
string[] GamePaths = Directory.GetFiles(GameDirPath, "*.patch", SearchOption.TopDirectoryOnly);
116116
if (GamePaths.Length == 0) return false;
117117

118118
try
119119
{
120120
PatchProp = new DeltaPatchProperty(GamePaths.First());
121-
if (PatchProp.ProfileName != this.SourceProfile.ProfileName) return false;
122-
if (this.ModeType != DownloadType.Update) return false;
121+
if (PatchProp.ProfileName != SourceProfile.ProfileName) return false;
122+
if (ModeType != DownloadType.Update) return false;
123+
if (PatchProp.TargetVer != GameVersionString) return false;
123124
}
124125
catch (IndexOutOfRangeException) { return false; }
125126

0 commit comments

Comments
 (0)