Made some tweaks to game shutdown detection

This commit is contained in:
SpoinkyNL committed 2016-03-27 14:07:41 +02:00
1 parent 268a1a8e50
commit 698cca1212
2 files changed
+2 -2

No files matched your search

@@ -22,7 +22,7 @@ namespace Artemis.KeyboardProviders.Logitech
Width = 21; Width = 21;
KeyboardRegions = new List<KeyboardRegion> 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("NumPad", new Point(17, 1), new Point(21, 6)),
new KeyboardRegion("QWER", new Point(2, 2), new Point(5, 2)) 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. // If the currently active effect is a no longer running game, get rid of it.
var activeGame = EffectManager.ActiveEffect as GameModel; var activeGame = EffectManager.ActiveEffect as GameModel;
if (activeGame != null) 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); EffectManager.DisableGame(activeGame);
// Look for running games, stopping on the first one that's found. // Look for running games, stopping on the first one that's found.