public void Dispose() { if (RTCore.Instance != null) { RTCore.Instance.GuiUpdated -= Draw; } mPatcher.Undo(); mConfig.Dispose(); }