private static void CleanupSandbox() { m_steamService.Dispose(); m_spacegame.Dispose(); m_steamService = null; m_spacegame = null; }
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 }
public void Dispose() { Static.Dispose(); Static = null; }