Files
UnrealEngineUWP/Engine/Source/Developer/iOS/IOSTargetPlatform/Private/IOSTargetPlatformModule.cpp
Jaroslaw Palczynski ebce413232 UE4 Refactoring. Changed OVERRIDE and FINAL macros to keywords override and final.
[CL 2104397 by Jaroslaw Palczynski in Main branch]
2014-06-13 06:14:46 -04:00

58 lines
882 B
C++

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