8#include "Developer/Settings/Public/ISettingsModule.h"
9#include "UObject/Package.h"
11#define LOCTEXT_NAMESPACE "FApexSDKModule"
15#define LogAPEX(pmt, ...) UE_LOG(LogApexSDKModule, Log, TEXT(pmt), ##__VA_ARGS__)
16#define WarnAPEX(pmt, ...) UE_LOG(LogApexSDKModule, Warning, TEXT(pmt), ##__VA_ARGS__)
17#define FatalAPEX(pmt, ...) UE_LOG(LogApexSDKModule, Fatal, TEXT(pmt), ##__VA_ARGS__)
21 ModuleSettings = NewObject<UApexSDKSettings>(GetTransientPackage(),
"ApexSDKSettings", RF_Standalone);
25 if (ISettingsModule* SettingsModule = FModuleManager::GetModulePtr<ISettingsModule>(
"Settings"))
27 SettingsModule->RegisterSettings(
"Project",
"Plugins",
"ApexSDK",
28 LOCTEXT(
"RuntimeSettingsName",
"Apex SDK"),
29 LOCTEXT(
"RuntimeSettingsDescription",
"Configure Apex SDK plugin settings"),
35 if (!FModuleManager::Get().IsModuleLoaded(
"WebSockets"))
37 LogAPEX(
"WebSockets module was not loading. Loading now.");
38 FModuleManager::Get().LoadModule(
"WebSockets");
44 if (ISettingsModule* SettingsModule = FModuleManager::GetModulePtr<ISettingsModule>(
"Settings"))
46 SettingsModule->UnregisterSettings(
"Project",
"Plugins",
"ApexSDK");
71#undef LOCTEXT_NAMESPACE
DEFINE_LOG_CATEGORY_STATIC(LogApexSDKModule, Log, All)
UApexSDKSettings * ModuleSettings
virtual void StartupModule() override
UApexSDKSettings * GetSettings() const
virtual void ShutdownModule() override
static FString GetApexSDKVersion()
UCLASS(config = Engine, defaultconfig)