Beispiel #1
0
 private static void CleanupSandbox()
 {
     m_steamService.Dispose();
     m_spacegame.Dispose();
     m_steamService = null;
     m_spacegame    = null;
 }
Beispiel #2
0
        private void CleanupSandbox()
        {
            try
            {
                m_steamService?.ShutDown();
                m_game?.Dispose();
                m_steamService = null;
                m_game         = null;
            }
            catch (Exception ex)
            {
                // Don't spam console with annoying cleanup error
                MySandboxGame.Log.WriteLine(ex.Message);
                MySandboxGame.Log.WriteLine(ex.StackTrace);
            }
#if !SE
            VRage.Logging.MyLog.Default.Dispose();
#endif
        }
Beispiel #3
0
 public void Dispose()
 {
     Static.Dispose();
     Static = null;
 }