2016-01-07 08:17:16 -05:00
|
|
|
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
2014-04-30 16:19:30 -04:00
|
|
|
|
|
|
|
|
/*=============================================================================
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual ITargetPlatform* GetTargetPlatform( ) override
|
2014-04-30 16:19:30 -04:00
|
|
|
{
|
|
|
|
|
if (Singleton == NULL)
|
|
|
|
|
{
|
|
|
|
|
Singleton = new TGenericMacTargetPlatform<false, false, true>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Singleton;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IMPLEMENT_MODULE(FMacClientTargetPlatformModule, MacClientTargetPlatform);
|