public void Destroy() { if (m_DGen != null) { m_DGen.Dispose(); m_DGen = null; } }
public void Init(int windowWidth, int windowHeight, IntPtr parent, bool pal, char region) { m_Instance = this; m_DGen = new DGen(); m_DGen.Init(windowWidth, windowHeight, parent, pal, (sbyte)region); if (Settings.Default.DGenWindowLocation != null) { m_DGen.SetWindowPosition(Settings.Default.DGenWindowLocation.X, Settings.Default.DGenWindowLocation.Y); } }