Ejemplo n.º 1
0
        public ZGameProcess(
            string runArgs,
            ZInstalledGame targetGame,
            string pipeName,
            string processName)
        {
            _parser     = ZParsersFactory.CreateGameRunInfoParser();
            _runArgs    = runArgs;
            _targetGame = targetGame;
            _logger     = ZLogger.Instance;
            _pipeName   = pipeName;

            _processTracker = new ZProcessTracker(processName, TimeSpan.FromSeconds(1), false, processes => processes.First());
        }
Ejemplo n.º 2
0
        private IZGameProcess _createRunGame(ZInstalledGame target, string command, ZGame game, ZGameArchitecture architecture)
        {
            switch (game)
            {
            case ZGame.BF3: return(new ZGameProcess(command, target, "venice_snowroller", "bf3"));

            case ZGame.BF4:
                return(new ZGameProcess(command, target, "warsaw_snowroller",
                                        architecture == ZGameArchitecture.x64 ? "bf4" : "bf4_x86"));

            case ZGame.BFH:
                return(new ZGameProcess(command, target, "omaha_snowroller",
                                        architecture == ZGameArchitecture.x64 ? "bfh" : "bfh_x86"));

            case ZGame.None:
            default: throw new Exception();
            }
        }