Beispiel #1
0
    private Process CreateNewOverwatchProcess()
    {
        var info = new OverwatchInfoAuto
        {
            BattlenetExecutableFilePath = Cfg.BattlenetExecutableFilePath,
            OverwatchSettingsFilePath   = Cfg.OverwatchSettingsFilePath,
            MaxOverwatchStartTime       = -1
        };
        Process process = CreateNewOverwatchProcessFromInfo(info);

        return(process);
    }
Beispiel #2
0
    private Process CreateNewOverwatchProcessFromInfo(OverwatchInfoAuto info)
    {
        Process process = null;

        while (process == null)
        {
            try
            {
                process = CustomGame.StartOverwatch(info);
            }
            catch (OverwatchStartFailedException ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
        return(process);
    }