diff --git a/Release_Tool/Program.cs b/Release_Tool/Program.cs index 8f979ac..e4c4e70 100644 --- a/Release_Tool/Program.cs +++ b/Release_Tool/Program.cs @@ -126,7 +126,6 @@ namespace Release_Tool files.Add(new file(@"WeeXnes_UAC\bin\Release\WeeXnes_UAC.exe", "WeeXnes_UAC.exe")); files.Add(new file(@"WeeXnes\bin\Release\DiscordRPC.dll", "DiscordRPC.dll")); files.Add(new file(@"WeeXnes\bin\Release\Newtonsoft.Json.dll", "Newtonsoft.Json.dll")); - files.Add(new file(@"WeeXnes\bin\Release\CSGSI.dll", "CSGSI.dll")); files.Add(new file(@"Autostart\bin\Release\Autostart.exe", "Autostart.exe")); files.Add(new file(@"Update\bin\Release\Update.exe", "Update.exe")); diff --git a/WeeXnes/Core/Globals.cs b/WeeXnes/Core/Globals.cs index 03c0bb7..dadbf20 100644 --- a/WeeXnes/Core/Globals.cs +++ b/WeeXnes/Core/Globals.cs @@ -6,7 +6,6 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; -using CSGSI; using Nocksoft.IO.ConfigFiles; using MessageBox = System.Windows.MessageBox; @@ -17,7 +16,7 @@ namespace WeeXnes.Core public static string encryptionKey = "8zf5#RdyQ]$4x4_"; public static string AppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "WeeXnes"); public static string SettingsFileName = "settings.ini"; - public static string version = "3.6"; + public static string version = "3.6.1"; public static bool info_isRpcRunning = false; public static bool info_RpcAutoStart; public static string apiUrl = "http://www.weexnes.com:5169/"; @@ -39,8 +38,6 @@ namespace WeeXnes.Core public static UpdateVar settings_RpcShowElapsedTime = new UpdateVar(); public static UpdateVar settings_RpcDefaultClientID = new UpdateVar(); public static UpdateVar settings_RpcAutoStart = new UpdateVar(); - public static UpdateVar settings_builtInCSGORpc = new UpdateVar(); - public static GameStateListener gameStateListener = new GameStateListener(4169); @@ -98,7 +95,6 @@ namespace WeeXnes.Core Globals.settings_RpcDefaultClientID.Value = "605116707035676701"; } - Globals.settings_builtInCSGORpc.Value = Convert.ToBoolean(SettingsFile.GetValue("rpc", "csgoPresence")); } @@ -186,10 +182,6 @@ namespace WeeXnes.Core { SettingsFile.SetValue("rpc","RpcAutoStart", Convert.ToString(Globals.settings_RpcAutoStart.Value)); }; - Globals.settings_builtInCSGORpc.ValueChanged += () => - { - SettingsFile.SetValue("rpc","csgoPresence", Convert.ToString(Globals.settings_builtInCSGORpc.Value)); - }; } } diff --git a/WeeXnes/MVVM/View/DiscordRpcView.xaml.cs b/WeeXnes/MVVM/View/DiscordRpcView.xaml.cs index edc2d5d..fd0b117 100644 --- a/WeeXnes/MVVM/View/DiscordRpcView.xaml.cs +++ b/WeeXnes/MVVM/View/DiscordRpcView.xaml.cs @@ -20,7 +20,6 @@ using System.Windows.Navigation; using System.Windows.Shapes; using WeeXnes.Core; using WeeXnes.RPC; -using WeeXnes.RPC.CSGO; namespace WeeXnes.MVVM.View { @@ -102,7 +101,7 @@ namespace WeeXnes.MVVM.View private void BackgroundWorker_DoWork(object sender, DoWorkEventArgs e) { - CSGORPC csrpc = new CSGORPC("777202324145438812"); + Globals.info_isRpcRunning = true; writeLog(new customEvent("Thread Started", EventType.ProcessStartedEvent)); bool runWorker = true; @@ -118,18 +117,12 @@ namespace WeeXnes.MVVM.View { game.stop(); } - csrpc.stop(); } Process[] processes = Process.GetProcesses(); foreach (Game game in Games) { game.checkState(processes); } - - if (Globals.settings_builtInCSGORpc.Value) - { - csrpc.checkState(processes); - } Thread.Sleep(delay); } } diff --git a/WeeXnes/MVVM/View/SettingView.xaml b/WeeXnes/MVVM/View/SettingView.xaml index 2bd6d4d..ad84bea 100644 --- a/WeeXnes/MVVM/View/SettingView.xaml +++ b/WeeXnes/MVVM/View/SettingView.xaml @@ -124,28 +124,6 @@ - - - - - -