Exemple #1
0
 public RuntimeGC(ModContentPack pack) : base(pack)
 {
     Settings = LoadedModManager.ReadModSettings <RuntimeGCSettings>(Content.PackageId, this.GetType().Name);
     Toolbox.Launcher.Launch(Settings.AutoCleanModMetaData, Settings.AutoCleanLanguageData, Settings.AutoCleanDefPackage);
     Mute.Launcher.Launch(Settings.DoMuteGC, Settings.DoMuteBL);
     Verse.Log.Message("[RuntimeGC] Mod settings loaded.");
 }
 internal static void UpdateSettings(RuntimeGCSettings settings)
 {
     enableBar = settings.EnableMemoryMonitorBar;
     enableTip = settings.EnableMemoryMonitorTip;
     memoryBarLowerMb = settings.MemoryMonitorBarLowerBoundMb;
     memoryBarStepMb = settings.MemoryMonitorBarUpperBoundMb - memoryBarLowerMb;
     updateInterval = settings.MemoryMonitorUpdateInterval;
     onScreenMemUsage = settings.DevOnScreenMemoryUsage;
     progress = 0f;
     tipCache = "";
     updatetick = 32767;
 }