mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 17:45:23 +00:00
Fix Shipping builds, should not be including Settings module and should only register settings in editor
This commit is contained in:
parent
8aa8dc198e
commit
8c09aa09e4
@ -1,8 +1,12 @@
|
||||
#include "StevesUEHelpers.h"
|
||||
|
||||
#if WITH_EDITOR
|
||||
#include "ISettingsModule.h"
|
||||
#include "ISettingsSection.h"
|
||||
#include "StevesPluginSettings.h"
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#define LOCTEXT_NAMESPACE "FStevesUEHelpers"
|
||||
|
||||
@ -13,6 +17,7 @@ void FStevesUEHelpers::StartupModule()
|
||||
// This code will execute after your module is loaded into memory; the exact timing is specified in the .uplugin file per-module
|
||||
UE_LOG(LogStevesUEHelpers, Log, TEXT("Steve's UE Helpers Module Started"))
|
||||
|
||||
#if WITH_EDITOR
|
||||
// register settings
|
||||
ISettingsModule* SettingsModule = FModuleManager::GetModulePtr<ISettingsModule>("Settings");
|
||||
|
||||
@ -24,6 +29,7 @@ void FStevesUEHelpers::StartupModule()
|
||||
GetMutableDefault<UStevesPluginSettings>()
|
||||
);
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
@ -29,8 +29,7 @@ public class StevesUEHelpers : ModuleRules
|
||||
"Slate",
|
||||
"SlateCore",
|
||||
"UMG",
|
||||
"Paper2D",
|
||||
"Settings"
|
||||
"Paper2D"
|
||||
}
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user