MCPcopy Create free account
hub / github.com/Illation/ETEngine / SaveLayout

Method SaveLayout

Engine/source/EtEditor/Layout/EditorBase.cpp:93–101  ·  view source on GitHub ↗

--------------------------------- EditorBase::SaveLayout

Source from the content-addressed store, hash-verified

91// EditorBase::SaveLayout
92//
93void EditorBase::SaveLayout()
94{
95 std::string const layoutPath = FS("%slayouts/%s.json", EditorConfig::GetInstance()->GetEditorUserDir().c_str(), GetLayoutName().c_str());
96
97 if (!core::serialization::SerializeToFile(layoutPath, m_NodeHierachy))
98 {
99 LOG(FS("EditorBase::SaveLayout > unable to save the layout to: %s", layoutPath.c_str()), core::LogLevel::Warning);
100 }
101}
102
103//---------------------------------
104// EditorBase::QueueNodeForSplit

Callers 1

OnSaveEditorLayoutMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected