NAK_CVR_Mods/.Experimental/FuckDebugConsole/Main.cs
2026-06-18 22:20:56 -05:00

23 lines
No EOL
789 B
C#

using MelonLoader;
using UnityEngine;
namespace NAK.FuckDebugConsole;
public class FuckDebugConsoleMod : MelonMod
{
private static readonly MelonPreferences_Category Category =
MelonPreferences.CreateCategory(nameof(FuckDebugConsole));
internal static readonly MelonPreferences_Entry<bool> EntryEnableDebugConsole =
Category.CreateEntry("enable_debug_console", false,
"Enable Debug Console", description: "Whether to use the debug console at all.");
public override void OnInitializeMelon()
{
Debug.developerConsoleEnabled = EntryEnableDebugConsole.Value;
EntryEnableDebugConsole.OnEntryValueChanged.Subscribe((oldValue, newValue) =>
{
Debug.developerConsoleEnabled = newValue;
});
}
}