/// <summary> /// Unregisters an existing console variable /// </summary> /// <param name="name"></param> /// <param name="delete"></param> public static void Unregister(string name, bool delete = false) { NativeCVarMethods.UnregisterCVar(name, delete); CVars.RemoveAll(x => x.Name == name); }
/// <summary> /// Unregisters an existing console variable. /// </summary> /// <param name="name">Name of the variable to unregister.</param> /// <param name="delete">Indicates whether traces of the variable must be deleted.</param> public static void Unregister(string name, bool delete = false) { Native.ConsoleInterop.UnregisterCVar(name, delete); CVars.RemoveAll(x => x.Name == name); }