You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
61 lines
1.0 KiB
C++
61 lines
1.0 KiB
C++
|
|
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
||
|
|
|
||
|
|
#include "AndroidTargetPlatformPrivatePCH.h"
|
||
|
|
|
||
|
|
#define LOCTEXT_NAMESPACE "FAndroidTargetPlatformModule"
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Holds the target platform singleton.
|
||
|
|
*/
|
||
|
|
static ITargetPlatform* AndroidTargetSingleton = NULL;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Module for the Android target platform.
|
||
|
|
*/
|
||
|
|
class FAndroidTargetPlatformModule : public ITargetPlatformModule
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Destructor.
|
||
|
|
*/
|
||
|
|
~FAndroidTargetPlatformModule( )
|
||
|
|
{
|
||
|
|
AndroidTargetSingleton = NULL;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
// Begin ITargetPlatformModule interface
|
||
|
|
|
||
|
|
virtual ITargetPlatform* GetTargetPlatform() OVERRIDE
|
||
|
|
{
|
||
|
|
if (AndroidTargetSingleton == NULL)
|
||
|
|
{
|
||
|
|
AndroidTargetSingleton = new FAndroidTargetPlatform();
|
||
|
|
}
|
||
|
|
|
||
|
|
return AndroidTargetSingleton;
|
||
|
|
}
|
||
|
|
|
||
|
|
// End ITargetPlatformModule interface
|
||
|
|
|
||
|
|
public:
|
||
|
|
// Begin IModuleInterface interface
|
||
|
|
virtual void StartupModule() OVERRIDE
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
virtual void ShutdownModule() OVERRIDE
|
||
|
|
{
|
||
|
|
}
|
||
|
|
// End IModuleInterface interface
|
||
|
|
};
|
||
|
|
|
||
|
|
|
||
|
|
#undef LOCTEXT_NAMESPACE
|
||
|
|
|
||
|
|
|
||
|
|
IMPLEMENT_MODULE( FAndroidTargetPlatformModule, AndroidTargetPlatform);
|