Files
UnrealEngineUWP/Engine/Source/Developer/iOS/IOSTargetPlatform/Private/IOSTargetPlatformModule.cpp
Matt Kuhlenschmidt 92eed46d3f Merging //UE4/Dev-Main to Dev-Geometry (//UE4/Dev-Geometry)
#rb none

[CL 3635882 by Matt Kuhlenschmidt in Dev-Geometry branch]
2017-09-11 10:43:35 -04:00

52 lines
871 B
C++

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "IOSTargetPlatform.h"
#include "Interfaces/ITargetPlatformModule.h"
#include "Modules/ModuleManager.h"
/**
* Holds the target platform singleton.
*/
static ITargetPlatform* Singleton = nullptr;
/**
* Module for iOS as a target platform
*/
class FIOSTargetPlatformModule
: public ITargetPlatformModule
{
public:
/** Destructor. */
~FIOSTargetPlatformModule()
{
Singleton = nullptr;
}
public:
//~ ITargetPlatformModule interface
virtual ITargetPlatform* GetTargetPlatform()
{
if (Singleton == nullptr)
{
Singleton = new FIOSTargetPlatform(false);
}
return Singleton;
}
public:
//~ IModuleInterface interface
virtual void StartupModule() override { }
virtual void ShutdownModule() override { }
};
IMPLEMENT_MODULE(FIOSTargetPlatformModule, IOSTargetPlatform);