mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2026-06-21 22:18:01 +00:00
[NAK_CVR_Mods] Unfucked for 2026r182
This commit is contained in:
parent
c13dc8375a
commit
281403d68b
209 changed files with 3936 additions and 1122 deletions
23
.Experimental/FuckDebugConsole/Main.cs
Normal file
23
.Experimental/FuckDebugConsole/Main.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
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;
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue