From 698cca12122bcd8671d7c0e30f02cb06835dad56 Mon Sep 17 00:00:00 2001 From: SpoinkyNL Date: Sun, 27 Mar 2016 14:07:41 +0200 Subject: [PATCH] Made some tweaks to game shutdown detection --- Artemis/Artemis/KeyboardProviders/Logitech/Orion.cs | 2 +- Artemis/Artemis/Managers/MainManager.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Artemis/Artemis/KeyboardProviders/Logitech/Orion.cs b/Artemis/Artemis/KeyboardProviders/Logitech/Orion.cs index 5db6d8a29..b4fb74df9 100644 --- a/Artemis/Artemis/KeyboardProviders/Logitech/Orion.cs +++ b/Artemis/Artemis/KeyboardProviders/Logitech/Orion.cs @@ -22,7 +22,7 @@ namespace Artemis.KeyboardProviders.Logitech Width = 21; KeyboardRegions = new List { - new KeyboardRegion("TopRow", new Point(0, 0), new Point(16, 0)), + new KeyboardRegion("TopRow", new Point(0, 0), new Point(18, 0)), new KeyboardRegion("NumPad", new Point(17, 1), new Point(21, 6)), new KeyboardRegion("QWER", new Point(2, 2), new Point(5, 2)) }; diff --git a/Artemis/Artemis/Managers/MainManager.cs b/Artemis/Artemis/Managers/MainManager.cs index dd4b9de1d..f4f6a4859 100644 --- a/Artemis/Artemis/Managers/MainManager.cs +++ b/Artemis/Artemis/Managers/MainManager.cs @@ -281,7 +281,7 @@ namespace Artemis.Managers // If the currently active effect is a no longer running game, get rid of it. var activeGame = EffectManager.ActiveEffect as GameModel; if (activeGame != null) - if (runningProcesses.All(p => p.ProcessName != activeGame.ProcessName)) + if (!runningProcesses.Any(p => p.ProcessName == activeGame.ProcessName && p.HasExited == false)) EffectManager.DisableGame(activeGame); // Look for running games, stopping on the first one that's found.