33 lines
704 B
C++
33 lines
704 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "EditorConfigBase.h"
|
|
|
|
#include "Editor.h"
|
|
#include "Editor/EditorEngine.h"
|
|
#include "EditorConfigSubsystem.h"
|
|
|
|
bool UEditorConfigBase::LoadEditorConfig()
|
|
{
|
|
if (GEditor)
|
|
{
|
|
UEditorConfigSubsystem* Subsystem = GEditor->GetEditorSubsystem<UEditorConfigSubsystem>();
|
|
if (Subsystem)
|
|
{
|
|
return Subsystem->LoadConfigObject(this->GetClass(), this);
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
bool UEditorConfigBase::SaveEditorConfig() const
|
|
{
|
|
if (GEditor)
|
|
{
|
|
UEditorConfigSubsystem* Subsystem = GEditor->GetEditorSubsystem<UEditorConfigSubsystem>();
|
|
if (Subsystem)
|
|
{
|
|
return Subsystem->SaveConfigObject(this->GetClass(), this);
|
|
}
|
|
}
|
|
return false;
|
|
} |