You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Use this in RunUAT.sh to control how the background workaround for child processes not dying is used for mono UAT #rb brandon.schaefer #fyi joakim.lindqvist [CL 14504487 by Josh Adams in ue5-main branch]
26 lines
618 B
C++
26 lines
618 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "DesktopPlatformModule.h"
|
|
#include "DesktopPlatformPrivate.h"
|
|
|
|
IMPLEMENT_MODULE( FDesktopPlatformModule, DesktopPlatform );
|
|
DEFINE_LOG_CATEGORY(LogDesktopPlatform);
|
|
|
|
void FDesktopPlatformModule::StartupModule()
|
|
{
|
|
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;
|
|
}
|
|
}
|