Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
v0.4.1 Revert 2db2d42
Browse files Browse the repository at this point in the history
  • Loading branch information
alvr committed Nov 3, 2016
1 parent 2c82470 commit 50b2410
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 27 deletions.
5 changes: 0 additions & 5 deletions ASFui/ASFProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@ private void Check()
}
}

if (sb.ToString().Contains("Disconnected from Steam!"))
{
_asf.GetBotList();
}

if (!sb.ToString().Contains("Init() Success!")) return;
_asf.GetBotList();
}
Expand Down
32 changes: 13 additions & 19 deletions ASFui/ASFui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,25 +118,19 @@ public void GetBotList()
var status = Util.SendCommand("statusall");
var matches = Regex.Matches(status, @"Bot (.*) is");
cbBotList.Invoke(new MethodInvoker(delegate
{
foreach (Match m in matches)
{
cbBotList.Items.Add(m.Groups[1].Value);
}
}));

cbBotList.Invoke(new MethodInvoker(delegate
{
if (cbBotList.Items.Count <= 0)
{
btnStop.PerformClick();
}
else
{
cbBotList.SelectedIndex = 0;
EnableElements();
}
}));
{
foreach (Match m in matches)
cbBotList.Items.Add(m.Groups[1].Value);
}));

Logging.Info("Bot list refreshed. Detected " + matches.Count + " bots.");

if (matches.Count <= 0) return;
cbBotList.Invoke(new MethodInvoker(delegate
{
cbBotList.SelectedIndex = 0;
EnableElements();
}));
}

#region Buttons Events
Expand Down
4 changes: 2 additions & 2 deletions ASFui/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
// Puede especificar todos los valores o usar los valores predeterminados de número de compilación y de revisión
// mediante el carácter '*', como se muestra a continuación:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.4.0.0")]
[assembly: AssemblyFileVersion("0.4.0.0")]
[assembly: AssemblyVersion("0.4.1.0")]
[assembly: AssemblyFileVersion("0.4.1.0")]
1 change: 1 addition & 0 deletions ASFui/Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public static void UpgradeSettings()
Settings.Default.Upgrade();
Settings.Default.UpdateSettings = false;
Settings.Default.Save();
Logging.Info("ASFui updated to " + new Version(Application.ProductVersion));
}

public static bool IsOnScreen(Rectangle rec, double minPercentOnScreen = 0.2)
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.0.0
0.4.1.0

0 comments on commit 50b2410

Please sign in to comment.