Navigation
API > API/Plugins > API/Plugins/Hotfix
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UUpdateManager
References
| Module | Hotfix |
| Header | /Engine/Plugins/Online/OnlineFramework/Source/Hotfix/Public/UpdateManager.h |
| Include | #include "UpdateManager.h" |
Syntax
UCLASS&40;Config&61;Engine&41;
class UUpdateManager : public UObject
Remarks
Update manager
Checks the system and/or backend for the possibility of a patch and hotfix Will not apply a hotfix if a pending patch is available Notifies the game of the result of the check
- possibly requires UI to prevent user from playing if a patch is available
- possibly requires UI to prevent user from player if a hotfix requires a reload of existing data
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | AppSuspendedUpdateCheckTimeSeconds | If application is suspended longer than this, trigger an update check when resuming | |
| bool | bCheckHotfixAvailabilityOnly | Is this run only checking and not applying | |
| bool | bInitialUpdateFinished | Has the first update completed | |
| bool | bPlatformEnvironmentDetected | True if we've already detected the backend environment | |
| EUpdateState | CurrentUpdateState | Current state of the update | |
| FDateTime | DeactivatedTime | Time when application was deactivated | |
| float | HotfixAvailabilityCheckCompleteDelay | Amount of time to wait between the internal hotfix availability check completing and advancing to the next stage | |
| float | HotfixCheckCompleteDelay | Amount of time to wait between the internal hotfix check completing and advancing to the next stage | |
| FDelegateHandle | HotfixCompleteDelegateHandle | Delegates to hotfix updates | |
| FDelegateHandle | HotfixProcessedFileDelegateHandle | ||
| FDelegateHandle | HotfixProgressDelegateHandle | ||
| EUpdateCompletionStatus[2] | LastCompletionResult | Last update check result (0:normal, 1:availability only) | |
| EHotfixResult | LastHotfixResult | Result of the last hotfix | |
| EInstallBundleManagerPatchCheckResult | LastPatchCheckResult | Result of the last patch check | |
| FDateTime[2] | LastUpdateCheck | Timestamp of last update check (0:normal, 1:availability only) | |
| double | LoadStartTime | The time at which we started the initial load after updates completed | |
| FTSTicker::FDelegateHandle | StartCheckInternalTimerHandle | ||
| FTSTicker::FDelegateHandle | TickerHandle | ||
| float | UpdateCheckAvailabilityCompleteDelay | Amount of time to wait at the end of the entire check before notifying listening entities (availability check only) | |
| float | UpdateCheckCachedResponseDelay | Amount of time to wait before returning a cached response when updates are started. | |
| float | UpdateCheckCompleteDelay | Amount of time to wait at the end of the entire check before notifying listening entities | |
| float | UpdateCheckStartDelay | Amount of time to wait before starting an update check. | |
| int32 | WorstNumFilesPendingLoadViewed | What was the maximum number of pending async loads we've seen so far |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CheckComplete
(
EUpdateCompletionStatus Result, |
Announce that the update check has completed | |
| bool | |||
| bool | |||
| EUpdateCompletionStatus | |||
| UGameInstance * | |||
| THotfixManager * | |||
| float | |||
| EUpdateState | |||
| UWorld * | GetWorld () |
||
| bool | |||
| void | HotfixAvailabilityCheckComplete
(
EHotfixResult Result |
Availability check complete | |
| void | Initial preload of assets is complete | ||
| void | InstallBundlePatchCheckComplete
(
EInstallBundleManagerPatchCheckResult PatchResult |
||
| bool | |||
| bool | |||
| bool | |||
| bool | IsUpdating () |
||
| void | Called when application has been reactivated | ||
| void | Called when application is about to be deactivated | ||
| void | OnDetectPlatformEnvironmentComplete
(
const FOnlineError& Result |
Callback when detecting platform environment completes | |
| void | OnHotfixCheckComplete
(
EHotfixResult Result |
||
| void | OnHotfixProcessedFile
(
const FString& FriendlyName, |
||
| void | OnHotfixProgress
(
uint32 NumDownloaded, |
||
| FOnUpdateCheckComplete & | |||
| FOnUpdateHotfixProcessedFile & | |||
| FOnUpdateHotfixProgress & | |||
| FOnUpdateStatusChanged & | |||
| void | PatchCheckComplete
(
EPatchCheckResult PatchResult |
||
| void | Register deactivate/reactivate delegates | ||
| void | Reset () |
Reset so you can call StartCheck again | |
| void | SetPending () |
Put the update manager in a pending state so it can alert the game that a check is imminent | |
| void | SetUpdateState
(
EUpdateState NewState |
Change the state of the update manager | |
| void | StartCheck
(
bool bInCheckHotfixOnly |
Start an patch and hotfix check | |
| EUpdateStartResult | StartCheckInternal
(
bool bInCheckHotfixOnly |
Internal call for StartCheck | |
| void | Check for the availability of changed hotfix files only | ||
| void | Hotfix check | ||
| void | Preload game assets after patch/hotfix check is complete but before game is alerted | ||
| void | Patch check | ||
| void | Query for platform environment before continuing with hotfixing This configures the Mcp backend correctly | ||
| void | StartUpdateCheck
(
const FString& ContextName |
Start an update check using properties defined by context. | |
| EUpdateStartResult | StartUpdateCheckInternal
(
const FUpdateContextDefinition& ContextDefinition |
Internal call for StartUpdateCheck | |
| bool | Tick
(
float DeltaTime |
Tick function during initial preload | |
| void | Unregister deactivate/reactivate delegates |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. | ||
| void | PostReloadConfig
(
FProperty* PropertyThatWasLoaded |
Called from ReloadConfig after the object has reloaded its configuration data. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EUpdateStartResult |
Typedefs
| Name | Description |
|---|---|
| DelayCb | Fire a delegate after a given amount of time |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCheckOSSForUpdate | Set FPatchCheck::bCheckOSSForUpdate using section [PatchCheck] instead. | |
| bool | bCheckPlatformOSSForUpdate | Set FPatchCheck::bCheckPlatformOSSForUpdate using section [PatchCheck] instead. |