// Token: 0x06000993 RID: 2451 RVA: 0x00029B14 File Offset: 0x00027D14 private void Awake() { Console.instance = this; Console.SetupSystemConsole(); this.InitConVars(); foreach (SearchableAttribute searchableAttribute in SearchableAttribute.GetInstances <ConCommandAttribute>()) { ConCommandAttribute conCommandAttribute = (ConCommandAttribute)searchableAttribute; this.concommandCatalog[conCommandAttribute.commandName.ToLower(CultureInfo.InvariantCulture)] = new Console.ConCommand { flags = conCommandAttribute.flags, action = (Console.ConCommandDelegate)Delegate.CreateDelegate(typeof(Console.ConCommandDelegate), conCommandAttribute.target as MethodInfo), helpText = conCommandAttribute.helpText }; } string[] commandLineArgs = Environment.GetCommandLineArgs(); for (int i = 0; i < commandLineArgs.Length; i++) { Debug.LogFormat("arg[{0}]=\"{1}\"", new object[] { i, commandLineArgs[i] }); } MPEventSystemManager.availability.CallWhenAvailable(new Action(this.LoadStartupConfigs)); }
// Token: 0x06000DF4 RID: 3572 RVA: 0x00044B84 File Offset: 0x00042D84 private void Awake() { Console.instance = this; Console.SetupSystemConsole(); this.InitConVars(); Type[] types = base.GetType().Assembly.GetTypes(); for (int i = 0; i < types.Length; i++) { foreach (MethodInfo methodInfo in types[i].GetMethods(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic)) { object[] customAttributes = methodInfo.GetCustomAttributes(false); for (int k = 0; k < customAttributes.Length; k++) { ConCommandAttribute conCommandAttribute = ((Attribute)customAttributes[k]) as ConCommandAttribute; if (conCommandAttribute != null) { this.concommandCatalog[conCommandAttribute.commandName.ToLower()] = new Console.ConCommand { flags = conCommandAttribute.flags, action = (Console.ConCommandDelegate)Delegate.CreateDelegate(typeof(Console.ConCommandDelegate), methodInfo), helpText = conCommandAttribute.helpText }; } } } } string[] commandLineArgs = Environment.GetCommandLineArgs(); for (int l = 0; l < commandLineArgs.Length; l++) { Debug.LogFormat("arg[{0}]=\"{1}\"", new object[] { l, commandLineArgs[l] }); } MPEventSystemManager.availability.CallWhenAvailable(new Action(this.LoadStartupConfigs)); }