Made some tweaks to game shutdown detection

This commit is contained in:
SpoinkyNL committed 2016-03-27 14:07:41 +02:00
1 parent 82b73b6c5c
commit 18da2ea21b
2 files changed
+2 -2

No files matched your search

@@ -22,7 +22,7 @@ namespace Artemis.KeyboardProviders.Logitech
Width = 21;
KeyboardRegions = new List<KeyboardRegion>
{
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))
};
+1 -1
View File
@@ -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.