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

[CL 3889612 by Matt Kuhlenschmidt in Dev-Geometry branch]
2018-02-14 14:13:42 -05:00

52 lines
871 B
C++

// Copyright 1998-2018 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);