예제 #1
0
        /// <summary>
        /// Parses the arguments passed into the application.
        /// </summary>
        /// <param name="arguments"></param>
        private static void ParseArguments(string[] arguments)
        {
            // Go over known arguments.
            for (int x = 0; x < arguments.Length; x++)
            {
                if (arguments[x] == $"{Strings.Common.LoaderSettingConfig}")
                {
                    _gameConfig = CheckConfigJson(arguments[x + 1]);
                }
                if (arguments[x] == $"{Strings.Common.LoaderSettingAttach}")
                {
                    _attachTargetName = arguments[x + 1];
                }
                if (arguments[x] == $"{Strings.Common.LoaderSettingLog}")
                {
                    Logger.Setup(arguments[x + 1]);
                }
            }

            // Check game config
            if (_gameConfig == null)
            {
                Banner.DisplayWarning();
            }
        }