Files
UnrealEngineUWP/Engine/Source/Developer/DesktopPlatform/Private/DesktopPlatformModule.cpp
Josh Adams 19fb469c91 - Sety an env var in DesktopPlatform so that children processes know it's being run from an unreal process (UE_DesktopUnrealProcess=1)
- 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]
2020-10-15 16:20:48 -04:00

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