refactor(new_editor): continue architecture closeout

This commit is contained in:
2026-04-15 22:47:42 +08:00
parent a458f2838c
commit dde03c5241
225 changed files with 4214 additions and 5196 deletions

View File

@@ -0,0 +1,24 @@
#include "Platform/Win32/EditorWindowRuntimeInternal.h"
#include <XCEditor/Foundation/UIEditorRuntimeTrace.h>
namespace XCEngine::UI::Editor::App::EditorWindowInternal {
bool ResolveVerboseRuntimeTraceEnabled() {
wchar_t buffer[8] = {};
const DWORD length = GetEnvironmentVariableW(
L"XCUIEDITOR_VERBOSE_TRACE",
buffer,
static_cast<DWORD>(std::size(buffer)));
return length > 0u && buffer[0] != L'0';
}
void LogRuntimeTrace(std::string_view channel, std::string_view message) {
AppendUIEditorRuntimeTrace(channel, message);
}
bool IsAutoCaptureOnStartupEnabled() {
return Support::IsEnvironmentFlagEnabled("XCUI_AUTO_CAPTURE_ON_STARTUP");
}
} // namespace XCEngine::UI::Editor::App::EditorWindowInternal