2016-01-07 08:17:16 -05:00
|
|
|
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
2015-01-26 10:22:57 -05:00
|
|
|
|
|
|
|
|
#include "HTML5PlatformEditorPrivatePCH.h"
|
|
|
|
|
|
|
|
|
|
//#include "EngineTypes.h"
|
|
|
|
|
#include "HTML5SDKSettings.h"
|
|
|
|
|
#include "IHTML5TargetPlatformModule.h"
|
2015-02-20 04:41:01 -05:00
|
|
|
#include "PropertyHandle.h"
|
|
|
|
|
#include "DesktopPlatformModule.h"
|
|
|
|
|
#include "PlatformFilemanager.h"
|
|
|
|
|
#include "GenericPlatformFile.h"
|
|
|
|
|
#include "PlatformInfo.h"
|
|
|
|
|
|
|
|
|
|
#define LOCTEXT_NAMESPACE "FHTML5PlatformEditorModule"
|
2015-01-26 10:22:57 -05:00
|
|
|
|
|
|
|
|
DEFINE_LOG_CATEGORY_STATIC(HTML5SDKSettings, Log, All);
|
|
|
|
|
|
|
|
|
|
UHTML5SDKSettings::UHTML5SDKSettings(const FObjectInitializer& ObjectInitializer)
|
|
|
|
|
: Super(ObjectInitializer)
|
|
|
|
|
, TargetPlatformModule(nullptr)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#if WITH_EDITOR
|
|
|
|
|
void UHTML5SDKSettings::PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent)
|
|
|
|
|
{
|
|
|
|
|
Super::PostEditChangeProperty(PropertyChangedEvent);
|
|
|
|
|
if (!TargetPlatformModule)
|
|
|
|
|
{
|
|
|
|
|
TargetPlatformModule = FModuleManager::LoadModulePtr<IHTML5TargetPlatformModule>("HTML5TargetPlatform");
|
|
|
|
|
}
|
2015-07-04 18:45:54 -04:00
|
|
|
if (TargetPlatformModule)
|
2015-01-26 10:22:57 -05:00
|
|
|
{
|
2015-07-04 18:45:54 -04:00
|
|
|
UpdateGlobalUserConfigFile();
|
2015-01-26 10:22:57 -05:00
|
|
|
TargetPlatformModule->RefreshAvailableDevices();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-20 04:41:01 -05:00
|
|
|
#endif //WITH_EDITOR
|
|
|
|
|
#undef LOCTEXT_NAMESPACE
|