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
Mostrar archivo Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method 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

Method Description
Reactivation_TaskStarted ( object sender, EventArgs e ) : void
Upgrade ( object p_lstModsToUpgrade ) : void

Upgrades the given fomods.

Method Details

OnTaskSetCompleted() protected method

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

OnTaskStarted() protected method

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

Replace() protected method

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.
return void

Scan() public method

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
return void

UpgradeMismatchedVersionScanner() public method

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.
return System

Wait() public method

Blocks until the task set is completed.
public Wait ( ) : void
return void