You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Engine source (Main branch up to CL 2026164)
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
// 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);
|
||||
Reference in New Issue
Block a user