Esempio n. 1
0
        public override void Exit()
        {
            //(SJ) Why is this called here when it's not in any other project
            //Net.NetworkSession.Exit();
            Interlocked.Increment(ref isExiting);

            // sound controller must be disposed here
            // so that it doesn't stop the game from disposing
            if (soundControllerInstance != null)
            {
                soundControllerInstance.Dispose();
                soundControllerInstance = null;
            }
            OpenTK.DisplayDevice.Default.RestoreResolution();
        }
Esempio n. 2
0
        protected override void Dispose(bool disposing)
        {
            if (!IsDisposed)
            {
                if (INTERNAL_window != null)
                {
                    INTERNAL_window.INTERNAL_Destroy();
                    INTERNAL_window = null;
                }

                if (soundControllerInstance != null)
                {
                    soundControllerInstance.Dispose();
                    soundControllerInstance = null;
                }
            }

            base.Dispose(disposing);
        }