Skip to content

Commit ea0c6a0

Browse files
committed
Removed some code added for testing.
1 parent 63a31aa commit ea0c6a0

File tree

3 files changed

+1
-56
lines changed

3 files changed

+1
-56
lines changed

HBRelog.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Global
7272
{8CBFDD9D-64B2-4ED8-962F-312D7E6A7F05}.Release|Win32.ActiveCfg = Release|x86
7373
{8CBFDD9D-64B2-4ED8-962F-312D7E6A7F05}.Release|Win32.Build.0 = Release|x86
7474
{8CBFDD9D-64B2-4ED8-962F-312D7E6A7F05}.Release|x64.ActiveCfg = Release|Any CPU
75-
{8CBFDD9D-64B2-4ED8-962F-312D7E6A7F05}.Release|x86.ActiveCfg = Release|Any CPU
75+
{8CBFDD9D-64B2-4ED8-962F-312D7E6A7F05}.Release|x86.ActiveCfg = Release|x86
7676
{29BEE34E-8D6A-47BF-96FA-ABA46F6E9B66}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
7777
{29BEE34E-8D6A-47BF-96FA-ABA46F6E9B66}.Debug|Any CPU.Build.0 = Debug|Any CPU
7878
{29BEE34E-8D6A-47BF-96FA-ABA46F6E9B66}.Debug|Any CPU and x64.ActiveCfg = Debug|Any CPU

WoW/States/CharacterSelectState.cs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ orderby grandParent.Id
9898
return false;
9999
}
100100

101-
DetachGlove();
102101
Utility.SendBackgroundKey(_wowManager.GameProcess.MainWindowHandle, (char)Keys.Enter, false);
103102
return true;
104103
}
@@ -159,33 +158,5 @@ bool ClickPlayTrial()
159158
return true;
160159
}
161160

162-
Stopwatch _gloveSw = new Stopwatch();
163-
private void DetachGlove()
164-
{
165-
if (_gloveSw.IsRunning && _gloveSw.ElapsedMilliseconds < 5000)
166-
return;
167-
168-
var gloveLauncherPath = Path.Combine(Utility.AssemblyDirectory, "Glove.exe");
169-
if (!File.Exists(gloveLauncherPath))
170-
return;
171-
172-
var pi = new ProcessStartInfo { UseShellExecute = false, FileName = gloveLauncherPath };
173-
pi.FileName = gloveLauncherPath;
174-
175-
pi.Arguments = string.Format("/detach \"{0}\"", _wowManager.GameProcess.Id);
176-
_wowManager.Profile.Log("Detatching Glove");
177-
using (var proc = Process.Start(pi))
178-
{
179-
var sw = Stopwatch.StartNew();
180-
while (!proc.HasExited && sw.ElapsedMilliseconds < 3000)
181-
Thread.Sleep(100);
182-
183-
if (!proc.HasExited)
184-
proc.Kill();
185-
}
186-
187-
_gloveSw.Restart();
188-
}
189-
190161
}
191162
}

WoW/States/LoginWowState.cs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ public override void Run()
107107
if (EnterTextInEditBox("AccountLoginPasswordEdit", _wowManager.Settings.Password))
108108
return;
109109

110-
AttachGlove();
111110
// everything looks good. Press 'Enter' key to login.
112111
Utility.SendBackgroundKey(_wowManager.GameProcess.MainWindowHandle, (char)Keys.Enter, false);
113112
}
@@ -378,30 +377,5 @@ bool EnterTextInEditBox(string editBoxName, string text)
378377
return true;
379378
}
380379

381-
private void AttachGlove()
382-
{
383-
var gloveLauncherPath = Path.Combine(Utility.AssemblyDirectory, "Glove.exe");
384-
if (!File.Exists(gloveLauncherPath))
385-
return;
386-
387-
var pi = new ProcessStartInfo { UseShellExecute = false, FileName = gloveLauncherPath };
388-
pi.FileName = gloveLauncherPath;
389-
var profilePath = Path.Combine(Utility.AssemblyDirectory, (uint)_wowManager.Settings.Login.GetHashCode() + ".xml");
390-
if (!File.Exists(profilePath))
391-
{
392-
_wowManager.Profile.Log("Generating glove profile.");
393-
var proc = Process.Start(gloveLauncherPath, string.Format("/generate {0}", profilePath));
394-
395-
while (!proc.HasExited)
396-
Thread.Sleep(100);
397-
}
398-
pi.Arguments = string.Format("/attach \"{0}\" \"{1}\"", profilePath, _wowManager.GameProcess.Id);
399-
_wowManager.Profile.Log("Attaching Glove");
400-
using (var proc = Process.Start(pi))
401-
{
402-
while (!proc.HasExited)
403-
Thread.Sleep(100);
404-
}
405-
}
406380
}
407381
}

0 commit comments

Comments
 (0)