1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Made some tweaks to game shutdown detection

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

View File

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

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.