You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb #jira UE-181579 #preflight https://horde.devtools.epicgames.com/job/642a4b9e89339023eb527855 #fyi [CL 24986815 by William Belcher in ue5-main branch]
34 lines
791 B
C++
34 lines
791 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "DesktopPlatformModule.h"
|
|
#include "DesktopPlatformPrivate.h"
|
|
#include "Null/NullPlatformApplicationMisc.h"
|
|
|
|
IMPLEMENT_MODULE( FDesktopPlatformModule, DesktopPlatform );
|
|
DEFINE_LOG_CATEGORY(LogDesktopPlatform);
|
|
|
|
void FDesktopPlatformModule::StartupModule()
|
|
{
|
|
if(FNullPlatformApplicationMisc::IsUsingNullApplication())
|
|
{
|
|
DesktopPlatform = new FDesktopPlatformNull();
|
|
}
|
|
else
|
|
{
|
|
DesktopPlatform = new FDesktopPlatform();
|
|
}
|
|
|
|
FPlatformMisc::SetEnvironmentVar(TEXT("UE_DesktopUnrealProcess"), TEXT("1"));
|
|
}
|
|
|
|
void FDesktopPlatformModule::ShutdownModule()
|
|
{
|
|
FPlatformMisc::SetEnvironmentVar(TEXT("UE_DesktopUnrealProcess"), TEXT("0"));
|
|
|
|
if (DesktopPlatform != NULL)
|
|
{
|
|
delete DesktopPlatform;
|
|
DesktopPlatform = NULL;
|
|
}
|
|
}
|