public override void Close() { base.Close(); if (ExceptionHandler.Unloading) { Instance = null; } }
public RichHudMaster() : base(false, true) { if (Instance == null) { Instance = this; } else { throw new Exception("Only one instance of RichHudMaster can exist at any given time."); } LogIO.FileName = "RichHudMasterLog.txt"; MasterConfig.FileName = "RichHudMasterConfig.xml"; ExceptionHandler.RecoveryLimit = 5; ExceptionHandler.ModName = "Rich HUD Master"; clients = new List <ModClient>(); }