Engine source (Main branch up to CL 2026164)

This commit is contained in:
Tim Sweeney
2014-03-14 14:13:41 -04:00
commit 324683ce78
10199 changed files with 3908382 additions and 0 deletions

View File

@@ -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);