From 587196da516d31d5bc5e1719e4065c15ba08a368 Mon Sep 17 00:00:00 2001 From: daf Date: Sat, 15 Jul 2017 20:25:27 +0100 Subject: [PATCH] Tried to make it compatible with beta clients * Added battle.beta.net to the GetBnetProcessId() * Bumped version to 1.12 --- bnetlauncher/Program.cs | 2 +- bnetlauncher/Properties/AssemblyInfo.cs | 4 ++-- bnetlauncher/instructions.txt | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bnetlauncher/Program.cs b/bnetlauncher/Program.cs index 96b2646..83534a8 100644 --- a/bnetlauncher/Program.cs +++ b/bnetlauncher/Program.cs @@ -565,7 +565,7 @@ private static int GetBnetProcessId() // TODO: What would happen if there's another program with a battle.net.exe running? Should we even care? try { - using (var searcher = new ManagementObjectSearcher("SELECT ProcessId FROM Win32_process WHERE Name = 'Battle.Net.exe'")) + using (var searcher = new ManagementObjectSearcher("SELECT ProcessId FROM Win32_process WHERE Name = 'Battle.Net.Beta.exe' OR Name = 'Battle.Net.exe'")) { foreach (var result in searcher.Get()) { diff --git a/bnetlauncher/Properties/AssemblyInfo.cs b/bnetlauncher/Properties/AssemblyInfo.cs index 4fc8fd6..4844215 100644 --- a/bnetlauncher/Properties/AssemblyInfo.cs +++ b/bnetlauncher/Properties/AssemblyInfo.cs @@ -49,5 +49,5 @@ // Build Number // Revision // -[assembly: AssemblyVersion("1.11.*")] -//[assembly: AssemblyFileVersion("1.11.*")] +[assembly: AssemblyVersion("1.12.*")] +//[assembly: AssemblyFileVersion("1.12.*")] diff --git a/bnetlauncher/instructions.txt b/bnetlauncher/instructions.txt index 2960ae6..f583a95 100644 --- a/bnetlauncher/instructions.txt +++ b/bnetlauncher/instructions.txt @@ -69,6 +69,9 @@ Special Thanks Version History --------------- +1.12 ++ Tried to make it compatible with beta versions of the battle.net client + 1.11 + Added aditional checks for when battlenet:// uri handler is broken