Download LyraStarterGame/Source/LyraGame/Hotfix/LyraHotfixManager.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.99 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Hotfix/LyraHotfixManager.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/Hotfix/LyraHotfixManager.h
-
curl -L -o LyraHotfixManager.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Hotfix/LyraHotfixManager.h
1.99 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| UCLASS() | |
| class ULyraHotfixManager : public UOnlineHotfixManager | |
| { | |
| GENERATED_BODY() | |
| public: | |
| DECLARE_MULTICAST_DELEGATE_OneParam(FOnPendingGameHotfix, bool); | |
| FOnPendingGameHotfix OnPendingGameHotfixChanged; | |
| ULyraHotfixManager(); | |
| virtual ~ULyraHotfixManager(); | |
| void RequestPatchAssetsFromIniFiles(); | |
| protected: | |
| void OnHotfixCompleted(EHotfixResult HotfixResult); | |
| virtual FString GetCachedDirectory() override | |
| { | |
| return FPaths::ProjectPersistentDownloadDir() / TEXT("Hotfix/"); | |
| } | |
| virtual void StartHotfixProcess() override; | |
| virtual bool WantsHotfixProcessing(const struct FCloudFileHeader& FileHeader) override; | |
| virtual bool ApplyHotfixProcessing(const struct FCloudFileHeader& FileHeader) override; | |
| virtual bool ShouldWarnAboutMissingWhenPatchingFromIni(const FString& AssetPath) const override; | |
| virtual void PatchAssetsFromIniFiles() override; | |
| virtual void OnHotfixAvailablityCheck(const TArray<FCloudFileHeader>& PendingChangedFiles, const TArray<FCloudFileHeader>& PendingRemoveFiles) override; | |
| virtual bool HotfixIniFile(const FString& FileName, const FString& IniData) override; | |
| private: | |
| // Error reporting | |
| FDelegateHandle OnScreenMessageHandle; | |
| void GetOnScreenMessages(TMultiMap<FCoreDelegates::EOnScreenMessageSeverity, FText>& OutMessages); | |
| private: | |
| /** get the current game instance */ | |
| template<typename T> | |
| T* GetGameInstance() const | |
| { | |
| return GetTypedOuter<T>(); | |
| } | |
| void Init() override; | |
| private: | |
| FTSTicker::FDelegateHandle RequestPatchAssetsHandle; | |
| FDelegateHandle HotfixCompleteDelegateHandle; | |
| bool bHasPendingGameHotfix = false; | |
| bool bHasPendingDeviceProfileHotfix = false; | |
| static int32 GameHotfixCounter; | |
| }; | |