private static void Init_Postfix() { ConsoleBridge.suppressLogs = false; SceneManager.activeSceneChanged -= ConsoleWindow.AttachWindow; ConsoleBridge.PopulateCommands(); ModLoader.Reload += ConsoleBridge.ReloadMods; }
private static void InvokeCatchers_Postfix(ref bool @return, string cmd, string[] args) { if (!@return) { return; } @return = ConsoleBridge.RunCatchers(cmd, args); }
private static bool RegisterCommand_Prefix(ConsoleCommand cmd) { ConsoleBridge.RegisterCommand(cmd.ID, cmd); return(false); }