Files
UnrealEngineUWP/Engine/Source/Runtime/InstallBundleManager/Private/InstallBundleManagerInterface.cpp
justin marcus 8b39bd15b0 Move Install Bundle Manager interface out of core and into the bundle manager module.
[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]
2019-08-08 00:48:21 -04:00

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;
}