2016-01-07 08:17:16 -05:00
|
|
|
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
2015-02-17 09:57:44 -05:00
|
|
|
|
2015-06-16 11:09:27 -04:00
|
|
|
#include "AllDesktopTargetPlatformPrivatePCH.h"
|
2015-02-17 09:57:44 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Holds the target platform singleton.
|
|
|
|
|
*/
|
|
|
|
|
static ITargetPlatform* Singleton = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Module for a generic target platform for desktop platforms
|
|
|
|
|
*/
|
2015-06-16 11:09:27 -04:00
|
|
|
class FAllDesktopTargetPlatformModule : public ITargetPlatformModule
|
2015-02-17 09:57:44 -05:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Destructor.
|
|
|
|
|
*/
|
2015-06-16 11:09:27 -04:00
|
|
|
FAllDesktopTargetPlatformModule()
|
2015-02-17 09:57:44 -05:00
|
|
|
{
|
|
|
|
|
Singleton = NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
// Begin ITargetPlatformModule interface
|
|
|
|
|
|
2015-04-01 07:20:55 -04:00
|
|
|
virtual ITargetPlatform* GetTargetPlatform() override
|
2015-02-17 09:57:44 -05:00
|
|
|
{
|
|
|
|
|
if (Singleton == NULL)
|
|
|
|
|
{
|
2015-06-16 11:09:27 -04:00
|
|
|
Singleton = new FAllDesktopTargetPlatform();
|
2015-02-17 09:57:44 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Singleton;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// End ITargetPlatformModule interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
// Begin IModuleInterface interface
|
|
|
|
|
virtual void StartupModule() override
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
virtual void ShutdownModule() override
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
// End IModuleInterface interface
|
|
|
|
|
};
|
|
|
|
|
|
2015-06-16 11:09:27 -04:00
|
|
|
IMPLEMENT_MODULE( FAllDesktopTargetPlatformModule, AllDesktopTargetPlatform);
|