From 0b689a177b48ac537a1cc73fa9b8fa26bae062de Mon Sep 17 00:00:00 2001 From: WeeXnes Date: Fri, 9 Sep 2022 22:23:24 +0200 Subject: [PATCH] code cleanup --- WeeXnes/Core/Globals.cs | 2 ++ WeeXnes/MVVM/View/DiscordRpcView.xaml.cs | 2 ++ WeeXnes/MainWindow.xaml.cs | 2 ++ WeeXnes/RPC/Game.cs | 3 ++- 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/WeeXnes/Core/Globals.cs b/WeeXnes/Core/Globals.cs index 0d867c1..6821fec 100644 --- a/WeeXnes/Core/Globals.cs +++ b/WeeXnes/Core/Globals.cs @@ -208,3 +208,5 @@ namespace WeeXnes.Core protected virtual void OnValueChanged() => ValueChanged?.Invoke(); } } + + diff --git a/WeeXnes/MVVM/View/DiscordRpcView.xaml.cs b/WeeXnes/MVVM/View/DiscordRpcView.xaml.cs index e2dd98f..2ff76f5 100644 --- a/WeeXnes/MVVM/View/DiscordRpcView.xaml.cs +++ b/WeeXnes/MVVM/View/DiscordRpcView.xaml.cs @@ -317,3 +317,5 @@ namespace WeeXnes.MVVM.View } } } + + diff --git a/WeeXnes/MainWindow.xaml.cs b/WeeXnes/MainWindow.xaml.cs index b0b4fa8..77fcb42 100644 --- a/WeeXnes/MainWindow.xaml.cs +++ b/WeeXnes/MainWindow.xaml.cs @@ -187,3 +187,5 @@ namespace WeeXnes } } } + + diff --git a/WeeXnes/RPC/Game.cs b/WeeXnes/RPC/Game.cs index 0c16ebb..ce109aa 100644 --- a/WeeXnes/RPC/Game.cs +++ b/WeeXnes/RPC/Game.cs @@ -110,6 +110,7 @@ namespace WeeXnes.RPC { if (foundProcess) { + start(); DiscordRpcView.logContent = new customEvent("↪ " + this.Name + " [" + this.ProcessName + ".exe] started", EventType.ProcessStartedEvent); DiscordRpcView.triggerLogupdate.Value = "nlejgmolegjog"; @@ -120,10 +121,10 @@ namespace WeeXnes.RPC { if (!foundProcess) { + stop(); DiscordRpcView.logContent = new customEvent( "↩ " + this.Name + " [" + this.ProcessName + ".exe] closed", EventType.ProcessStoppedEvent); DiscordRpcView.triggerLogupdate.Value = "nlejgmolegjog"; - this.isRunning = false; } }