Skip to content

Commit

Permalink
Merge pull request #6 from MindLaborDev/master
Browse files Browse the repository at this point in the history
Fixed autoupdate bug #5
  • Loading branch information
kinsi55 authored Dec 13, 2021
2 parents 09d7c9f + 1078bef commit 1408e98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ private void applyButton_Click(object sender, EventArgs e) {
SetKv(ref acf, "StateFlags", "4");
SetKv(ref acf, "UpdateResult", "0");

// Disable Autoupdate if its not already
if(checkBox1.Checked)
SetKv(ref acf, "AutoUpdateBehavior", "1");
SetKv(ref acf, "AutoUpdateBehavior", "0");

acf = Regex.Replace(acf, "(\"" + AppInfo.DEPOT_ID + "\".*?\"manifest\"\\s*?)\"[0-9]{19}\"", $"$1\"{textbox_manifest.Text}\"", RegexOptions.Singleline | RegexOptions.IgnoreCase);

Expand Down

0 comments on commit 1408e98

Please sign in to comment.