C# Class Nexus.Client.ModManagement.InstallationLog.UpgradeMismatchedVersionScanner

Checks to see if any mods' versions are different than the recorded versions in the install log. If so, the discrepancies are dealt with.
Inheritance: IBackgroundTaskSet
Afficher le fichier Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Méthodes publiques

Méthode Description
Scan ( ) : void

Scans the mods folder for fomods that have versions that differ from their versions in the install log.

If fomods with versions that differ from those in the install log are found, the use is asked whether to replace or upgrade the fomod. Replacing the fomod merely changes the version in the install log, but makes no system changes. Upgrading the fomod performs an in-place upgrade.

UpgradeMismatchedVersionScanner ( IInstallLog p_ilgInstallLog, ModManager p_mmgModManager, ConfirmMismatchedVersionModUpgradeDelegate p_dlgConfirmUpgrade, ConfirmItemOverwriteDelegate p_dlgOverwriteConfirmationDelegate ) : System

A simple constructor that initializes the object with its dependencies.

Wait ( ) : void

Blocks until the task set is completed.

Méthodes protégées

Méthode Description
OnTaskSetCompleted ( TaskSetCompletedEventArgs e ) : void

Raises the TaskSetCompleted event.

OnTaskStarted ( EventArgs e ) : void

Raises the TaskStarted event.

Replace ( IMod>.IList p_lstModsToReplace ) : void

Replaces the given fomods in the install log.

Private Methods

Méthode Description
Reactivation_TaskStarted ( object sender, EventArgs e ) : void
Upgrade ( object p_lstModsToUpgrade ) : void

Upgrades the given fomods.

Method Details

OnTaskSetCompleted() protected méthode

Raises the TaskSetCompleted event.
protected OnTaskSetCompleted ( TaskSetCompletedEventArgs e ) : void
e Nexus.Client.BackgroundTasks.TaskSetCompletedEventArgs A describing the task that was started.
Résultat void

OnTaskStarted() protected méthode

Raises the TaskStarted event.
protected OnTaskStarted ( EventArgs e ) : void
e EventArgs An describing the task that was started.
Résultat void

Replace() protected méthode

Replaces the given fomods in the install log.
protected Replace ( IMod>.IList p_lstModsToReplace ) : void
p_lstModsToReplace IMod>.IList The list of fomods to replace.
Résultat void

Scan() public méthode

Scans the mods folder for fomods that have versions that differ from their versions in the install log.
If fomods with versions that differ from those in the install log are found, the use is asked whether to replace or upgrade the fomod. Replacing the fomod merely changes the version in the install log, but makes no system changes. Upgrading the fomod performs an in-place upgrade.
public Scan ( ) : void
Résultat void

UpgradeMismatchedVersionScanner() public méthode

A simple constructor that initializes the object with its dependencies.
public UpgradeMismatchedVersionScanner ( IInstallLog p_ilgInstallLog, ModManager p_mmgModManager, ConfirmMismatchedVersionModUpgradeDelegate p_dlgConfirmUpgrade, ConfirmItemOverwriteDelegate p_dlgOverwriteConfirmationDelegate ) : System
p_ilgInstallLog IInstallLog The install log to use to log file installations.
p_mmgModManager ModManager The mod manager to use to upgrade any replaced mods.
p_dlgConfirmUpgrade ConfirmMismatchedVersionModUpgradeDelegate The delegate to call to confirm that a mismatched version mod should be upgraded.
p_dlgOverwriteConfirmationDelegate ConfirmItemOverwriteDelegate The method to call in order to confirm an overwrite.
Résultat System

Wait() public méthode

Blocks until the task set is completed.
public Wait ( ) : void
Résultat void