Skip to content

Commit

Permalink
Fix dedicated server beeing detected as game
Browse files Browse the repository at this point in the history
  • Loading branch information
Versalkul committed Oct 28, 2016
1 parent cd874e6 commit ae36397
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion WarframeMarketClient/Logic/RunsGameChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Runtime.InteropServices;
using System.Timers;
using WarframeMarketClient.Model;
using System.Linq;

namespace WarframeMarketClient.Logic
{
Expand Down Expand Up @@ -66,7 +67,10 @@ public void changeRunning()
private void checker(object o,EventArgs args)
{

GameOnline = Process.GetProcessesByName("Warframe.x64").Length > 0 || Process.GetProcessesByName("Warframe").Length > 0;

Process[] GameX64 = Process.GetProcessesByName("Warframe.x64");
Process[] GameX86 = Process.GetProcessesByName("Warframe");
GameOnline = GameX64.Where(g => g.MainWindowTitle.ToLower().Equals("warframe")).Any() || GameX86.Where(g => g.MainWindowTitle.ToLower().Equals("warframe")).Any();
if (!isAFK&& GameOnline && ApplicationState.getInstance().OnlineState != OnlineState.INGAME) ApplicationState.getInstance().OnlineState = OnlineState.INGAME;
if(!isAFK && !GameOnline && ApplicationState.getInstance().OnlineState == OnlineState.INGAME) ApplicationState.getInstance().OnlineState = ApplicationState.getInstance().DefaultState;
LASTINPUTINFO lastInputInfo = new LASTINPUTINFO();
Expand Down
2 changes: 1 addition & 1 deletion WarframeMarketClient/Model/ApplicationState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public Version LatestVersion
}
}

public Boolean UpdateAvailable
public bool UpdateAvailable
{
get
{
Expand Down

0 comments on commit ae36397

Please sign in to comment.