Exemplo n.º 1
0
        private void refreshInstalledModsButton_Click(object sender, EventArgs e)
        {
            var installedModsList = _cleanerHelper.InstalledMods(gameFolderPathString);

            if (installedModsList.Count > 0 && RefreshResetTimer.Enabled == false)
            {
                _injectionHelper.RefreshInstalledMods(gameFolderPathString, installedModsList);
                refreshInstalledModsButton.Text = "Mods Refreshed";
                refreshInstalledModsButton.Font = new Font(refreshInstalledModsButton.Font, FontStyle.Bold);
                RefreshResetTimer.Enabled       = true;
            }
        }
Exemplo n.º 2
0
        private void RefreshInstalledMods()
        {
            CleanerHelper   _cleanerHelper   = new CleanerHelper();
            InjectionHelper _injectionHelper = new InjectionHelper();

            //copy pasted
            var installedModsList = _cleanerHelper.InstalledMods(gameFolderPathString);

            if (installedModsList.Count > 0)
            {
                _injectionHelper.RefreshInstalledMods(gameFolderPathString, installedModsList);
                Console.WriteLine("Mods Refreshed");
            }
        }