You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
[at]Thomas.Ross [at]Daniel.Lamb #ROBOMERGE-SOURCE: CL 7842003 via CL 7842009 via CL 7842010 via CL 7860819 #ROBOMERGE-BOT: (v389-7813075) [CL 7860867 by justin marcus in Main branch]
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "InstallBundleManagerInterface.h"
|
|
#include "InstallBundleManagerModule.h"
|
|
|
|
FInstallBundleCompleteMultiDelegate IInstallBundleManager::InstallBundleCompleteDelegate;
|
|
|
|
FInstallBundleCompleteMultiDelegate IInstallBundleManager::RemoveBundleCompleteDelegate;
|
|
|
|
FInstallBundlePausedMultiDelegate IInstallBundleManager::PausedBundleDelegate;
|
|
|
|
IInstallBundleManager* IInstallBundleManager::GetPlatformInstallBundleManager()
|
|
{
|
|
static IInstallBundleManager* Manager = nullptr;
|
|
static bool bCheckedIni = false;
|
|
|
|
if (Manager)
|
|
return Manager;
|
|
|
|
if (!bCheckedIni && !GEngineIni.IsEmpty())
|
|
{
|
|
FString ModuleName;
|
|
IInstallBundleManagerModule* Module = nullptr;
|
|
GConfig->GetString(TEXT("InstallBundleManager"), TEXT("ModuleName"), ModuleName, GEngineIni);
|
|
|
|
if (FModuleManager::Get().ModuleExists(*ModuleName))
|
|
{
|
|
FModuleStatus Status;
|
|
Module = FModuleManager::LoadModulePtr<IInstallBundleManagerModule>(*ModuleName);
|
|
if (Module)
|
|
{
|
|
Manager = Module->GetInstallBundleManager();
|
|
}
|
|
}
|
|
|
|
bCheckedIni = true;
|
|
}
|
|
|
|
return Manager;
|
|
}
|
|
|