コード例 #1
0
ファイル: Root.cs プロジェクト: aihhr1832/RimWorld-Decompile
 private static void CheckGlobalInit()
 {
     if (!Root.globalInitDone)
     {
         UnityDataInitializer.CopyUnityData();
         SteamManager.InitIfNeeded();
         string[] commandLineArgs = Environment.GetCommandLineArgs();
         if (commandLineArgs != null && commandLineArgs.Length > 1)
         {
             Log.Message("Command line arguments: " + GenText.ToSpaceList(commandLineArgs.Skip(1)), false);
         }
         VersionControl.LogVersionNumber();
         Application.targetFrameRate = 60;
         Prefs.Init();
         if (Prefs.DevMode)
         {
             StaticConstructorOnStartupUtility.ReportProbablyMissingAttributes();
         }
         if (Root.< > f__mg$cache0 == null)
         {
             Root.< > f__mg$cache0 = new Action(StaticConstructorOnStartupUtility.CallAll);
         }
         LongEventHandler.QueueLongEvent(Root.< > f__mg$cache0, null, false, null);
         Root.globalInitDone = true;
     }
 }
コード例 #2
0
        private static void CheckGlobalInit()
        {
            if (Root.globalInitDone)
            {
                return;
            }
            CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;

            if (currentCulture.Name != "en-US")
            {
                Log.Warning("Unexpected culture: " + currentCulture + ". Resetting to en-US.");
                Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
            }
            SteamManager.InitIfNeeded();
            string[] commandLineArgs = Environment.GetCommandLineArgs();
            if (commandLineArgs != null && commandLineArgs.Length > 1)
            {
                Log.Message("Command line arguments: " + GenText.ToSpaceList(commandLineArgs.Skip(1)));
            }
            UnityData.CopyUnityData();
            VersionControl.LogVersionNumber();
            Application.targetFrameRate = 60;
            Prefs.Init();
            if (Prefs.DevMode)
            {
                StaticConstructorOnStartupUtility.ReportProbablyMissingAttributes();
            }
            LongEventHandler.QueueLongEvent(new Action(StaticConstructorOnStartupUtility.CallAll), null, false, null);
            Root.globalInitDone = true;
        }
コード例 #3
0
ファイル: Root.cs プロジェクト: KraigXu/GameProject
 private static void CheckGlobalInit()
 {
     if (!globalInitDone)
     {
         string[] commandLineArgs = Environment.GetCommandLineArgs();
         if (commandLineArgs != null && commandLineArgs.Length > 1)
         {
             Log.Message("Command line arguments: " + GenText.ToSpaceList(commandLineArgs.Skip(1)));
         }
         PerformanceReporting.enabled = false;
         Application.targetFrameRate  = 60;
         UnityDataInitializer.CopyUnityData();
         SteamManager.InitIfNeeded();
         VersionControl.LogVersionNumber();
         Prefs.Init();
         if (Prefs.DevMode)
         {
             StaticConstructorOnStartupUtility.ReportProbablyMissingAttributes();
         }
         LongEventHandler.QueueLongEvent(StaticConstructorOnStartupUtility.CallAll, null, doAsynchronously: false, null);
         globalInitDone = true;
     }
 }