public void Close()
 {
     if (m_isUplayConnected)
     {
         RendezVousInvokes.LegacyRendezVousShutDown();
         UplayInvokes.UPLAY_Quit();
     }
     foreach (IntPtr hglobal in overlappedMap.Keys)
     {
         Marshal.FreeHGlobal(hglobal);
     }
     overlappedMap.Clear();
     LegacyLogic.Instance.EventManager.UnregisterEvent(EEventType.TOKEN_ADDED, new EventHandler(OnTokenAdded));
     LegacyLogic.Instance.EventManager.UnregisterEvent(EEventType.SAVEGAME_LOADED, new EventHandler(OnSaveGameLoaded));
 }
Esempio n. 2
0
 public void Close()
 {
     RendezVousInvokes.LegacyRendezVousShutDown();
 }