You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
52 lines
871 B
C++
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);
|