private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            SettingsManager.Initialize();
            PreferencesManager.Initialize();
            HistoryManager.Delete();

            var manager = new LaunchManager();

            manager.StartHomeWindow();

            Application.Run();
        }
        private void guiHome_FormClosing(object sender, FormClosingEventArgs e)
        {
            LaunchManager.GameProcess?.Dispose();

            // reset
            SettingsManager.InvalidateXmlData();
            HistoryManager.RestorePatchedFiles();
            HistoryManager.Delete();

            // dispose loggers so we can delete empty logs
            AppContextManager.Dispose();
            SettingsManager.Dispose();
            HistoryManager.Dispose();
            LaunchManager.Dispose();
            PatchManager.Dispose();
            PreferencesManager.Dispose();
        }