public static void Init() { //Path Setup DirectorySetup(); LoadGwClientInfo(); CheckGwClientVersion(); //Updater Network Protocol ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; VersionSwitcher.DeleteUpdater(); VersionSwitcher.CheckForUpdate(); //Account Import Export AccountManager.ImportAccounts(); ClientManager.ImportActiveClients(); CrashAnalyzer.ReadCrashLogs(); IconManager.Init(); //Temp AddonManager AddOnManager.LoadAddons(LBAddonPath); AddOnManager.LaunchLbAddons(); Hotkeys.RegisterAll(); //Cleanup Plugin folder PluginManager.RemoveUninstalledPlugins(); PluginManager.AddToInstallPlugins(); //Cleanup CacheFolder CacheCleaner.Clean(); }
public static void Close() { AddOnManager.SaveAddons(LBAddonPath); Hotkeys.UnregisterAll(); //Local Dat Cleanup LocalDatManager.CleanUp(); }
public static void Close() { AddOnManager.SaveAddons(LBAddonPath); AccountManager.SaveAccounts(); Hotkeys.UnregisterAll(); //Local Dat Cleanup LocalDatManager.CleanUp(); PluginManager.OnLBClose(null); }