Files
UnrealEngineUWP/Engine/Source/Developer/Mac/MacClientTargetPlatform/Private/MacClientTargetPlatformModule.cpp
Michael Trepka ba3a2a11fd Small cleanup of Mac*TargetPlatform.cpp files
[CL 2103362 by Michael Trepka in Main branch]
2014-06-12 17:02:40 -04:00

41 lines
931 B
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
MacClientTargetPlatformModule.cpp: Implements the FMacClientTargetPlatformModule class.
=============================================================================*/
#include "MacClientTargetPlatformPrivatePCH.h"
/**
* Holds the target platform singleton.
*/
static ITargetPlatform* Singleton = NULL;
/**
* Module for the Mac target platform (without editor).
*/
class FMacClientTargetPlatformModule
: public ITargetPlatformModule
{
public:
virtual ~FMacClientTargetPlatformModule( )
{
Singleton = NULL;
}
virtual ITargetPlatform* GetTargetPlatform( ) OVERRIDE
{
if (Singleton == NULL)
{
Singleton = new TGenericMacTargetPlatform<false, false, true>();
}
return Singleton;
}
};
IMPLEMENT_MODULE(FMacClientTargetPlatformModule, MacClientTargetPlatform);