Adding Status and Last server response handled but not tested
This commit is contained in:
@ -1,17 +1,52 @@
|
||||
#include "DTFluxProjectSettingsModule.h"
|
||||
|
||||
#include "DTFluxGeneralSettings.h"
|
||||
#include "DTFluxNetworkSettings.h"
|
||||
#include "ISettingsModule.h"
|
||||
|
||||
#define LOCTEXT_NAMESPACE "FDTFluxProjectSettingsModule"
|
||||
|
||||
DTFLUXPROJECTSETTINGS_API DEFINE_LOG_CATEGORY(logDTFluxProjectSettings)
|
||||
|
||||
void FDTFluxProjectSettingsModule::StartupModule()
|
||||
{
|
||||
|
||||
RegisterSettings();
|
||||
}
|
||||
|
||||
void FDTFluxProjectSettingsModule::ShutdownModule()
|
||||
{
|
||||
|
||||
UnregisterSettings();
|
||||
}
|
||||
|
||||
void FDTFluxProjectSettingsModule::RegisterSettings()
|
||||
{
|
||||
|
||||
if (ISettingsModule* SettingsModule = FModuleManager::GetModulePtr<ISettingsModule>("Settings"))
|
||||
{
|
||||
SettingsModule->RegisterSettings("Project", "DTFluxProjectSettings", "DTFluxGeneralSettings",
|
||||
FText::FromString("DTFlux General Settings"),
|
||||
FText::FromString("DTFluxAPI Network Settings"),
|
||||
GetMutableDefault<UDTFluxGeneralSettings>()
|
||||
);
|
||||
SettingsModule->RegisterSettings("Project", "DTFluxProjectSettings", "DTFluxNetworkSettings",
|
||||
FText::FromString("DTFlux Network Settings"),
|
||||
FText::FromString("DTFluxAPI Network Settings"),
|
||||
GetMutableDefault<UDTFluxNetworkSettings>()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void FDTFluxProjectSettingsModule::UnregisterSettings()
|
||||
{
|
||||
if (ISettingsModule* SettingsModule = FModuleManager::GetModulePtr<ISettingsModule>("Settings"))
|
||||
{
|
||||
SettingsModule->UnregisterSettings("Project", "DTFluxProjectSettings", "DTFluxGeneralSettings");
|
||||
SettingsModule->UnregisterSettings("Project", "DTFluxProjectSettings", "DTFluxNetworkSettings");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
#undef LOCTEXT_NAMESPACE
|
||||
|
||||
Reference in New Issue
Block a user