// Copyright Epic Games, Inc. All Rights Reserved. #include "CoreMinimal.h" #include "Modules/ModuleManager.h" #include "Interfaces/ITargetPlatformModule.h" #include "Common/TargetPlatformBase.h" #define LOCTEXT_NAMESPACE "FMacTargetPlatformModule" /** * Module for Mac as a target platform */ class FMacTargetPlatformModule : public ITargetPlatformModule { public: virtual void GetTargetPlatforms(TArray& TargetPlatforms) override { } virtual void GetTargetPlatforms(TArray& TargetPlatforms, TArray TargetPlatformSettings, TArray TargetPlatformControls) override { for (ITargetPlatformControls* TargetPlatformControlsIt : TargetPlatformControls) { TargetPlatforms.Add(new FTargetPlatformMerged(TargetPlatformControlsIt->GetTargetPlatformSettings(), TargetPlatformControlsIt)); } } public: // Begin IModuleInterface interface virtual void StartupModule() override { } virtual void ShutdownModule() override { } // End IModuleInterface interface }; #undef LOCTEXT_NAMESPACE IMPLEMENT_MODULE( FMacTargetPlatformModule, MacTargetPlatform);