Méthode | Description | |
---|---|---|
ApplicationInitializer ( |
A simple constructor that initializes the object with the given values.
|
|
Initialize ( IGameModeFactory p_gmfGameModeFactory, |
Initializes the application.
|
Méthode | Description | |
---|---|---|
ApplyDelayedSetting ( string p_strKey, string p_strValue, |
Applies the specified setting that was deferred to the next application startup.
|
|
ApplyDelayedSettings ( string p_strGameModeId, |
Applies any settings that were deferred to the next application startup.
|
|
CreateEnvironmentPaths ( IGameMode p_gmdGameMode, |
Ensures that the game mode environment's paths exist.
|
|
DisposeServices ( |
This disposes of the services we created.
|
|
DoApplicationInitialize ( IGameModeFactory p_gmfGameModeFactory, |
Performs the applicatio initialization.
|
|
DoWork ( object p_objArgs ) : object |
The method that is called to start the backgound task.
|
|
InitializeServices ( IGameMode p_gmdGameMode, IModRepository p_mrpModRepository, |
This initializes the services required to run the client.
|
|
Login ( IGameMode p_gmdGameMode, IModRepository p_mrpModRepository ) : bool |
Logins the user into the current mod repository.
|
|
OnTaskStarted ( EventArgs |
Raises the TaskStarted event.
|
|
OnTaskStarted ( IBackgroundTask p_bgtTask ) : void |
Raises the TaskStarted event.
|
|
ScanForReadonlyFiles ( IGameMode p_gmdGameMode ) : void |
This chaecks for any files that are readonly.
|
|
UacCheck ( string p_strPath ) : bool |
Checks to see if UAC is interfering with file installation.
|
|
UacCheckEnvironment ( IGameMode p_gmdGameMode, |
Checks to see if UAC is interfering with file installation.
|
|
UninstallMissingMods ( IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, |
Uninstalls mods that have been manually removed since the last time the mod manager ran.
|
|
UpgradeMismatchedVersionMods ( IInstallLog p_ilgInstallLog, |
Upgrade mods that have been manually replaced since the last time the mod manager ran.
|
|
WaitForSet ( IBackgroundTaskSet p_btsTaskSet, bool p_booHookTaskStarted ) : void |
Waits for the task set to complete, and notifies listeners of any task started by the set.
|
Méthode | Description | |
---|---|---|
ConfirmMismatchedVersionModUpgrade ( IMod p_modOld, IMod p_modNew ) : bool |
Asks the user if the given mod whose version does not its version in the install log should be upgraded. If the user opts to not upgrade the mod, the verison is changed in the install log, but no other action is taken. |
|
TaskSet_TaskSetCompleted ( object sender, |
Handles the IBackgroundTaskSet.TaskSetCompleted event of a task set. This signals the wait handle that is blocking the initialization thread, allowing it to continue with the initialization. |
|
TaskSet_TaskStarted ( object sender, EventArgs |
Handles the IBackgroundTaskSet.TaskStarted event of a task set. This lets listeners know a task has started. |
|
Task_TaskEnded ( object sender, |
Handles the IBackgroundTask.TaskEnded event of tasks run during initialization. This signals the wait handle that is blocking the initialization thread, allowing it to continue with the initialization. |
public ApplicationInitializer ( |
||
p_eifEnvironmentInfo | The application's envrionment info. | |
p_nfrFontSetResolver | The |
|
Résultat | System |
protected ApplyDelayedSetting ( string p_strKey, string p_strValue, |
||
p_strKey | string | The key of the setting to apply. |
p_strValue | string | The value of the setting to apply. |
p_vwmErrorMessage | The error message if the application of the setting fails. | |
Résultat | bool |
protected ApplyDelayedSettings ( string p_strGameModeId, |
||
p_strGameModeId | string | The id of the current game mode. |
p_vwmErrorMessage | The error message if the application of settings fails. | |
Résultat | bool |
protected CreateEnvironmentPaths ( IGameMode p_gmdGameMode, |
||
p_gmdGameMode | IGameMode | The game mode whose paths are to be created. |
p_vwmErrorMessage | The error message if the creation fails. | |
Résultat | bool |
protected DisposeServices ( |
||
p_smgServices | The services to dispose. | |
Résultat | void |
protected DoApplicationInitialize ( IGameModeFactory p_gmfGameModeFactory, |
||
p_gmfGameModeFactory | IGameModeFactory | The factory to use to create the game mode for which we will be managing mods. |
p_scxUIContext | The |
|
p_vwmErrorMessage | The error message if the initialization failed. | |
Résultat | bool |
protected DoWork ( object p_objArgs ) : object | ||
p_objArgs | object | Arguments to for the task execution. |
Résultat | object |
public Initialize ( IGameModeFactory p_gmfGameModeFactory, |
||
p_gmfGameModeFactory | IGameModeFactory | The factory to use to create the game mode for which we will be managing mods. |
p_scxUIContext | The |
|
Résultat | void |
protected InitializeServices ( IGameMode p_gmdGameMode, IModRepository p_mrpModRepository, |
||
p_gmdGameMode | IGameMode | The game mode for which mods are being managed. |
p_mrpModRepository | IModRepository | The mod repository to use to retrieve mods and mod metadata. |
p_nfuFileUtility | The file utility class. | |
p_scxUIContext | The |
|
p_vwmErrorMessage | The error message if the UAC check failed. | |
Résultat |
protected Login ( IGameMode p_gmdGameMode, IModRepository p_mrpModRepository ) : bool | ||
p_gmdGameMode | IGameMode | The current game mode. |
p_mrpModRepository | IModRepository | The mod repository to use to retrieve mods and mod metadata. |
Résultat | bool |
protected OnTaskStarted ( EventArgs |
||
e | EventArgs |
An |
Résultat | void |
protected OnTaskStarted ( IBackgroundTask p_bgtTask ) : void | ||
p_bgtTask | IBackgroundTask | The task that was started. |
Résultat | void |
protected ScanForReadonlyFiles ( IGameMode p_gmdGameMode ) : void | ||
p_gmdGameMode | IGameMode | |
Résultat | void |
protected UacCheck ( string p_strPath ) : bool | ||
p_strPath | string | The path for which we are to check if UAC is intefeing. |
Résultat | bool |
protected UacCheckEnvironment ( IGameMode p_gmdGameMode, |
||
p_gmdGameMode | IGameMode | The game mode whose paths are to be checked. |
p_vwmErrorMessage | The error message if the initialization failed. | |
Résultat | bool |
protected UninstallMissingMods ( IGameMode p_gmdGameMode, IEnvironmentInfo p_eifEnvironmentInfo, |
||
p_gmdGameMode | IGameMode | The game mode currently being managed. |
p_eifEnvironmentInfo | IEnvironmentInfo | The application's envrionment info. |
p_mmgModManager | The mod manager to use to uninstall any missing mods. | |
Résultat | bool |
protected UpgradeMismatchedVersionMods ( IInstallLog p_ilgInstallLog, |
||
p_ilgInstallLog | IInstallLog | The install log to use to log file installations. |
p_mmgModManager | The mod manager to use to upgrade any replaced mods. | |
Résultat | void |
protected WaitForSet ( IBackgroundTaskSet p_btsTaskSet, bool p_booHookTaskStarted ) : void | ||
p_btsTaskSet | IBackgroundTaskSet | The task set for which to wait. |
p_booHookTaskStarted | bool | Whether or not to attach a listener to the |
Résultat | void |