2026-04-15 22:47:42 +08:00
|
|
|
#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() {
|
2026-04-15 23:13:09 +08:00
|
|
|
return App::Internal::IsEnvironmentFlagEnabled("XCUI_AUTO_CAPTURE_ON_STARTUP");
|
2026-04-15 22:47:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace XCEngine::UI::Editor::App::EditorWindowInternal
|