6#include "ISettingsModule.h"
7#include "ISettingsSection.h"
9#include "UObject/Package.h"
11#define LOCTEXT_NAMESPACE "FPPlatformCoreModule"
15#define Log(pmt, ...) UE_LOG(LogPPlatformCoreModule, Log, TEXT(pmt), ##__VA_ARGS__)
16#define Warn(pmt, ...) UE_LOG(LogPPlatformCoreModule, Warning, TEXT(pmt), ##__VA_ARGS__)
17#define Fatal(pmt, ...) UE_LOG(LogPPlatformCoreModule, Fatal, TEXT(pmt), ##__VA_ARGS__)
24 if (ISettingsModule* SettingsModule = FModuleManager::GetModulePtr<ISettingsModule>(
"Settings"))
26 ISettingsSectionPtr SettingsSection = SettingsModule->RegisterSettings(
"Project",
"PixoVR",
"Platform",
27 LOCTEXT(
"RuntimeSettingsName",
"Platform"),
28 LOCTEXT(
"RuntimeSettingsDescription",
"Configure PixoVR Platform Settings"),
32 if (SettingsSection.IsValid())
38 Log(
"PixoVR PlatformCore module started.");
43 if (ISettingsModule* SettingsModule = FModuleManager::GetModulePtr<ISettingsModule>(
"Settings"))
45 SettingsModule->UnregisterSettings(
"Project",
"PixoVR",
"Platform");
67 bool bIsValidate =
false;
72 Settings->SaveConfig();
83#undef LOCTEXT_NAMESPACE