mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2026-06-20 21:48:02 +00:00
23 lines
No EOL
789 B
C#
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;
|
|
});
|
|
}
|
|
} |