public ActivateMod ( IMod p_modMod, ConfirmModUpgradeDelegate p_dlgUpgradeConfirmationDelegate, ConfirmItemOverwriteDelegate p_dlgOverwriteConfirmationDelegate, ReadOnlyObservableList |
||
p_modMod | IMod | The mod to activate. |
p_dlgUpgradeConfirmationDelegate | ConfirmModUpgradeDelegate | The delegate that is called to confirm whether an upgrade install should be performed. |
p_dlgOverwriteConfirmationDelegate | ConfirmItemOverwriteDelegate | The method to call in order to confirm an overwrite. |
p_rolActiveMods | ReadOnlyObservableList |
The list or Active mods. |
return | IBackgroundTaskSet |
public IBackgroundTaskSet ActivateMod(IMod p_modMod, ConfirmModUpgradeDelegate p_dlgUpgradeConfirmationDelegate, ConfirmItemOverwriteDelegate p_dlgOverwriteConfirmationDelegate, ReadOnlyObservableList<IMod> p_rolActiveMods)
{
if (InstallationLog.ActiveMods.Contains(p_modMod))
return null;
DeleteXMLInstalledFile(p_modMod);
return Activator.Activate(p_modMod, p_dlgUpgradeConfirmationDelegate, p_dlgOverwriteConfirmationDelegate, p_rolActiveMods);
}