Files
UnrealEngineUWP/Engine/Source/Developer/Mac/MacServerTargetPlatform/Private/MacServerTargetPlatformModule.cpp
Ben Marsh 7598af0532 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

[CL 4662404 by Ben Marsh in Main branch]
2018-12-14 13:41:00 -05:00

43 lines
1.0 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
MacServerTargetPlatformModule.cpp: Implements the FMacServerTargetPlatformModule class.
=============================================================================*/
#include "CoreMinimal.h"
#include "GenericMacTargetPlatform.h"
#include "Interfaces/ITargetPlatformModule.h"
#include "Modules/ModuleManager.h"
/**
* Holds the target platform singleton.
*/
static ITargetPlatform* Singleton = NULL;
/**
* Module for the Mac target platform (without editor).
*/
class FMacServerTargetPlatformModule
: public ITargetPlatformModule
{
public:
virtual ~FMacServerTargetPlatformModule( )
{
Singleton = NULL;
}
virtual ITargetPlatform* GetTargetPlatform( ) override
{
if (Singleton == NULL)
{
Singleton = new TGenericMacTargetPlatform<false, true, false>();
}
return Singleton;
}
};
IMPLEMENT_MODULE(FMacServerTargetPlatformModule, MacServerTargetPlatform);