示例#1
0
        public override void OnApplicationStart() // Runs after Game Initialization.
        {
            if (Environment.CommandLine.Contains("--ff.debug") || MelonDebug.IsEnabled())
            {
                isDebug = true;
                MelonLogger.Msg("Debug mode is active");
            }

            melon               = MelonPreferences.CreateCategory(BuildInfo.Name, BuildInfo.Name);
            allowFrameLimit     = (MelonPreferences_Entry <bool>)melon.CreateEntry("allowFrameLimit", false, "Toggle Frame Focus");
            FrameLimit          = (MelonPreferences_Entry <int>)melon.CreateEntry("FrameLimit", 90, "Max Focused Frame Limit");
            FrameLimitUnfocused = (MelonPreferences_Entry <int>)melon.CreateEntry("FrameLimitUnfocused", 5, "Unfocused Frame Limit"); // suggested by ljoonal
            override_emmVRC     = (MelonPreferences_Entry <bool>)melon.CreateEntry("override_emmVRC", false, "Make FrameFocus ignore emmVRC integration (only works if emmVRC is detected)");

            MelonCoroutines.Start(ModCompatibility.RunCompatibilityCheck());
            MelonCoroutines.Start(StartLate.Init());
            MelonLogger.Msg("Initialized!");
        }
示例#2
0
 public override void VRChat_OnUiManagerInit()
 {
     MelonCoroutines.Start(ModCompatibility.RunCompatibilityCheck());
     MelonCoroutines.Start(StartLate.Init());
 }