C# Class Nexus.Client.Games.Gamebryo.ModManagement.GamebryoGameSpecificValueUpgradeInstaller

Installs values that are specific to a game mode when a mod is being upgraded.
This differs from the regular GamebryoGameSpecificValueInstaller in that installed edits are installed overtop of their current location. Edits are only made to game specific values if the mod being upgraded was the latest mod to edit the value in question. If the edit was not last made by the mod being upgraded, the edit is simply archived in the install log, to be used as required in future uninstallation. If an edit being installed has not been previously installed, it is installed as usual.
Inheritance: GamebryoGameSpecificValueInstaller
Afficher le fichier Open project: NexusMods/NexusModManager-4.5

Méthodes publiques

Méthode Description
EditGameSpecificValue ( string p_strKey, byte p_bteValue ) : bool

Edits the specified game specific value.

This method writes the given value in the specified game specific value, if it is owned by the mod being upgraded. If the specified edit is not owned by the mod being upgraded, the edit is archived in the install log. If the edit was not previously installed by the mod, then the normal install rules apply, including confirming overwrite if applicable.

FinalizeInstall ( ) : void

Finalizes the installation of the values.

This removes all of the file that weren't reinstalled during the upgrade.

GamebryoGameSpecificValueUpgradeInstaller ( IMod p_modMod, IGameModeEnvironmentInfo p_gmiGameModeInfo, IInstallLog p_ilgInstallLog, TxFileManager p_tfmFileManager, FileUtil p_futFileUtility, ConfirmItemOverwriteDelegate p_dlgOverwriteConfirmationDelegate ) : System

A simple constructor that initializes the object with its dependencies.

Method Details

EditGameSpecificValue() public méthode

Edits the specified game specific value.
This method writes the given value in the specified game specific value, if it is owned by the mod being upgraded. If the specified edit is not owned by the mod being upgraded, the edit is archived in the install log. If the edit was not previously installed by the mod, then the normal install rules apply, including confirming overwrite if applicable.
public EditGameSpecificValue ( string p_strKey, byte p_bteValue ) : bool
p_strKey string The key of the edited Game Specific Value.
p_bteValue byte The value to install.
Résultat bool

FinalizeInstall() public méthode

Finalizes the installation of the values.
This removes all of the file that weren't reinstalled during the upgrade.
public FinalizeInstall ( ) : void
Résultat void

GamebryoGameSpecificValueUpgradeInstaller() public méthode

A simple constructor that initializes the object with its dependencies.
public GamebryoGameSpecificValueUpgradeInstaller ( IMod p_modMod, IGameModeEnvironmentInfo p_gmiGameModeInfo, IInstallLog p_ilgInstallLog, TxFileManager p_tfmFileManager, FileUtil p_futFileUtility, ConfirmItemOverwriteDelegate p_dlgOverwriteConfirmationDelegate ) : System
p_modMod IMod The mod being installed.
p_gmiGameModeInfo IGameModeEnvironmentInfo The environment info of the current game mode.
p_ilgInstallLog IInstallLog The install log to use to log file installations.
p_tfmFileManager ChinhDo.Transactions.TxFileManager The transactional file manager to use to interact with the file system.
p_futFileUtility Nexus.Client.Util.FileUtil The file utility class.
p_dlgOverwriteConfirmationDelegate ConfirmItemOverwriteDelegate The method to call in order to confirm an overwrite.
Résultat System