You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
37 lines
801 B
C++
37 lines
801 B
C++
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
#include "AssetRegistryModule.h"
|
|
#include "AssetRegistry.h"
|
|
#include "AssetRegistryConsoleCommands.h"
|
|
|
|
IMPLEMENT_MODULE( FAssetRegistryModule, AssetRegistry );
|
|
|
|
void FAssetRegistryModule::StartupModule()
|
|
{
|
|
LLM_SCOPE(ELLMTag::AssetRegistry);
|
|
|
|
AssetRegistry = MakeWeakObjectPtr(const_cast<UAssetRegistryImpl*>(GetDefault<UAssetRegistryImpl>()));
|
|
ConsoleCommands = new FAssetRegistryConsoleCommands(*this);
|
|
}
|
|
|
|
|
|
void FAssetRegistryModule::ShutdownModule()
|
|
{
|
|
AssetRegistry = nullptr;
|
|
|
|
if ( ConsoleCommands )
|
|
{
|
|
delete ConsoleCommands;
|
|
ConsoleCommands = NULL;
|
|
}
|
|
}
|
|
|
|
IAssetRegistry& FAssetRegistryModule::Get() const
|
|
{
|
|
UAssetRegistryImpl* AssetRegistryPtr = AssetRegistry.Get();
|
|
check(AssetRegistryPtr);
|
|
return *AssetRegistryPtr;
|
|
}
|
|
|