IsRunningGame

Check to see if this executable was launched as a game (not editor or dedicated server) process.