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; } }