2016-01-07 08:17:16 -05:00
|
|
|
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#include "WindowsClientTargetPlatformPrivatePCH.h"
|
|
|
|
|
|
|
|
|
|
|
2014-08-20 21:10:29 -04:00
|
|
|
/** Holds the target platform singleton. */
|
|
|
|
|
static ITargetPlatform* Singleton = nullptr;
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Module for the Windows target platform as a server.
|
|
|
|
|
*/
|
|
|
|
|
class FWindowsClientTargetPlatformModule
|
|
|
|
|
: public ITargetPlatformModule
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
virtual ~FWindowsClientTargetPlatformModule( )
|
|
|
|
|
{
|
2014-08-20 21:10:29 -04:00
|
|
|
Singleton = nullptr;
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
virtual ITargetPlatform* GetTargetPlatform( )
|
|
|
|
|
{
|
2014-08-20 21:10:29 -04:00
|
|
|
if (Singleton == nullptr)
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
|
|
|
|
Singleton = new TGenericWindowsTargetPlatform<false, false, true>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Singleton;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2014-08-20 21:10:29 -04:00
|
|
|
IMPLEMENT_MODULE(FWindowsClientTargetPlatformModule, WindowsClientTargetPlatform);
|