- Added WITH_ENGINE wrappers to some code in MacTargetPlatform that doesn't work without engine

#rb tim.smith
#jira none
#preflight 63575537f726e94fe029697c

[CL 22744958 by Josh Adams in ue5-main branch]
This commit is contained in:
Josh Adams
2022-10-24 23:29:53 -04:00
parent d8b8e58a85
commit 82959c24fd

View File

@@ -41,6 +41,7 @@ public:
virtual void StartupModule() override
{
#if WITH_ENGINE
TargetSettings = NewObject<UMacTargetSettings>(GetTransientPackage(), "MacTargetSettings", RF_Standalone);
// We need to manually load the config properties here, as this module is loaded before the UObject system is setup to do this
@@ -78,10 +79,12 @@ public:
TargetSettings
);
}
#endif
}
virtual void ShutdownModule() override
{
#if WITH_ENGINE
ISettingsModule* SettingsModule = FModuleManager::GetModulePtr<ISettingsModule>("Settings");
if (SettingsModule != nullptr)
@@ -98,6 +101,7 @@ public:
{
TargetSettings = NULL;
}
#endif
}
// End IModuleInterface interface