internal static void SaveConfig(BossLogConfiguration bossLogConfig) { // in-game ModConfig saving from mod code is not supported yet in tmodloader, and subject to change, so we need to be extra careful. // This code only supports client configs, and doesn't call onchanged. It also doesn't support ReloadRequired or anything else. MethodInfo saveMethodInfo = typeof(ConfigManager).GetMethod("Save", BindingFlags.Static | BindingFlags.NonPublic); if (saveMethodInfo != null) { saveMethodInfo.Invoke(null, new object[] { bossLogConfig }); } else { BossChecklist.instance.Logger.Warn("In-game SaveConfig failed, code update required"); } }
public override void Unload() { instance = null; ToggleChecklistHotKey = null; bossChecklistInterface = null; bossTracker = null; ToggleBossLog = null; ServerCollectedRecords = null; BossRadarUIInterface = null; BossRadarUI.arrowTexture = null; ClientConfig = null; DebugConfig = null; BossLogConfig = null; UICheckbox.checkboxTexture = null; UICheckbox.checkmarkTexture = null; }