Files
UnrealEngineUWP/Engine/Source/Developer/IOS/IOSTargetPlatform/Private/IOSTargetPlatformModule.cpp
Ben Marsh 13d012685f Merging copyright update from 4.19 branch.
#rb none
#rnx
#jira

[CL 3818977 by Ben Marsh in Staging-4.19 branch]
2018-01-02 15:30:26 -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);