Пример #1
0
        public bool StartGTAO(GTAOOptions gameOptions)
        {
            bool procLaunchResult = this.StartGTAVProcess();

            if (!procLaunchResult)
            {
                return(false);
            }

            return(true);
        }
Пример #2
0
        public async Task <bool> SetOptions(GTAOOptions gameOptions)
        {
            List <string> optionStrings = this.GetGameOptionsAsStrings(gameOptions);

            if (optionStrings.Any())
            {
                return(await this.CreateCommandLineTxtFile(optionStrings));
            }

            return(true);
        }
Пример #3
0
        private List <string> GetGameOptionsAsStrings(GTAOOptions gameOptions)
        {
            List <string> optionStrings = new List <string>();

            if (gameOptions.StraightToFreemode)
            {
                optionStrings.Add("-StraightIntoFreemode");
            }

            return(optionStrings);
        }