You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Settings: Various improvements to the API
- made public headers compilable individually
- easier access to settings section delegates
- removed module singleton accessor
- moved non-trivial definitions into cpp files
- code & documentation cleanup
#UpgradeNotes:
- instead of ISettingsModule::Get() use FModuleManager::GetModulePtr<ISettingsModule>("Settings")
- instead of using FSettingsSectionDelegates assign delegates directly through the new ISettingsSection methods
[CL 2340711 by Max Preussner in Main branch]
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
/*=============================================================================
|
||||
HTML5TargetPlatformModule.cpp: Implements the FHTML5TargetPlatformModule class.
|
||||
=============================================================================*/
|
||||
|
||||
#include "HTML5TargetPlatformPrivatePCH.h"
|
||||
#include "ISettingsModule.h"
|
||||
#include "ModuleManager.h"
|
||||
|
||||
|
||||
#define LOCTEXT_NAMESPACE "FHTML5TargetPlatformModule"
|
||||
@@ -63,7 +61,7 @@ public:
|
||||
TargetSettings = ConstructObject<UHTML5TargetSettings>(UHTML5TargetSettings::StaticClass(), GetTransientPackage(), "HTML5TargetSettings", RF_Standalone);
|
||||
TargetSettings->AddToRoot();
|
||||
|
||||
ISettingsModule* SettingsModule = ISettingsModule::Get();
|
||||
ISettingsModule* SettingsModule = FModuleManager::GetModulePtr<ISettingsModule>("Settings");
|
||||
|
||||
if (SettingsModule != nullptr)
|
||||
{
|
||||
@@ -77,7 +75,7 @@ public:
|
||||
|
||||
virtual void ShutdownModule() override
|
||||
{
|
||||
ISettingsModule* SettingsModule = ISettingsModule::Get();
|
||||
ISettingsModule* SettingsModule = FModuleManager::GetModulePtr<ISettingsModule>("Settings");
|
||||
|
||||
if (SettingsModule != nullptr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user