fix a wrong variable name
This commit is contained in:
@@ -49,13 +49,13 @@ void FSenseGloveSettingsModule::StartupModule()
|
|||||||
|
|
||||||
SGLOG("Trying to get the Unreal Engine's Settings module...");
|
SGLOG("Trying to get the Unreal Engine's Settings module...");
|
||||||
|
|
||||||
ISettingsModule* SettingModule{FModuleManager::GetModulePtr<ISettingsModule>("Settings")};
|
ISettingsModule* SettingsModule{FModuleManager::GetModulePtr<ISettingsModule>("Settings")};
|
||||||
if (SettingModule)
|
if (SettingsModule)
|
||||||
{
|
{
|
||||||
SGLOG("Registering the SenseGlove settings manager through the Unreal Engine's Settings module...");
|
SGLOG("Registering the SenseGlove settings manager through the Unreal Engine's Settings module...");
|
||||||
|
|
||||||
ISettingsSectionPtr SenseGloveSettingsSection{
|
ISettingsSectionPtr SenseGloveSettingsSection{
|
||||||
SettingModule->RegisterSettings(
|
SettingsModule->RegisterSettings(
|
||||||
"Project", "Plugins", "SenseGloveSettings",
|
"Project", "Plugins", "SenseGloveSettings",
|
||||||
LOCTEXT("RuntimeSettingsName", "SenseGlove"),
|
LOCTEXT("RuntimeSettingsName", "SenseGlove"),
|
||||||
LOCTEXT("RuntimeSettingsDescription", "Configure the SenseGlove settings"),
|
LOCTEXT("RuntimeSettingsDescription", "Configure the SenseGlove settings"),
|
||||||
@@ -96,12 +96,12 @@ void FSenseGloveSettingsModule::ShutdownModule()
|
|||||||
|
|
||||||
SGLOG("Trying to get the Unreal Engine's Settings module...");
|
SGLOG("Trying to get the Unreal Engine's Settings module...");
|
||||||
|
|
||||||
ISettingsModule* SettingModule{FModuleManager::GetModulePtr<ISettingsModule>("Settings")};
|
ISettingsModule* SettingsModule{FModuleManager::GetModulePtr<ISettingsModule>("Settings")};
|
||||||
if (SettingModule)
|
if (SettingsModule)
|
||||||
{
|
{
|
||||||
SGLOG("Unregistering the SenseGlove settings manager through the Unreal Engine's Settings module...");
|
SGLOG("Unregistering the SenseGlove settings manager through the Unreal Engine's Settings module...");
|
||||||
|
|
||||||
SettingModule->UnregisterSettings("Project", "Plugins", "SenseGloveSettings");
|
SettingsModule->UnregisterSettings("Project", "Plugins", "SenseGloveSettings");
|
||||||
|
|
||||||
SGLOG("Successfully unregistered the SenseGlove settings manager!");
|
SGLOG("Successfully unregistered the SenseGlove settings manager!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user