You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
41 lines
937 B
C++
41 lines
937 B
C++
|
|
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
||
|
|
|
||
|
|
/*=============================================================================
|
||
|
|
LinuxClientTargetPlatformModule.cpp: Implements the FLinuxClientTargetPlatformModule class.
|
||
|
|
=============================================================================*/
|
||
|
|
|
||
|
|
#include "LinuxClientTargetPlatformPrivatePCH.h"
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Holds the target platform singleton.
|
||
|
|
*/
|
||
|
|
static ITargetPlatform* Singleton = NULL;
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Module for the Linux target platform (without editor).
|
||
|
|
*/
|
||
|
|
class FLinuxClientTargetPlatformModule
|
||
|
|
: public ITargetPlatformModule
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
virtual ~FLinuxClientTargetPlatformModule( )
|
||
|
|
{
|
||
|
|
Singleton = NULL;
|
||
|
|
}
|
||
|
|
|
||
|
|
virtual ITargetPlatform* GetTargetPlatform( )
|
||
|
|
{
|
||
|
|
if (Singleton == NULL)
|
||
|
|
{
|
||
|
|
Singleton = new TLinuxTargetPlatform<false, false, true>();
|
||
|
|
}
|
||
|
|
|
||
|
|
return Singleton;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
//
|
||
|
|
IMPLEMENT_MODULE(FLinuxClientTargetPlatformModule, LinuxClientTargetPlatform);
|