editor: explicit runtime path contract

This commit is contained in:
2026-04-28 14:49:41 +08:00
parent 0e506f21ec
commit cd166037bf
38 changed files with 210 additions and 129 deletions

View File

@@ -63,11 +63,9 @@ DWORD ResolveExtendedWindowStyle(const EditorWindowNativeHostPolicy& policy) {
EditorWindowHostRuntime::EditorWindowHostRuntime(
EditorWindowHostConfig hostConfig,
std::filesystem::path repoRoot,
std::filesystem::path captureRoot)
EditorRuntimePaths runtimePaths)
: m_hostConfig(hostConfig),
m_repoRoot(std::move(repoRoot)),
m_captureRoot(std::move(captureRoot)) {}
m_runtimePaths(std::move(runtimePaths)) {}
EditorWindowHostRuntime::~EditorWindowHostRuntime() = default;
@@ -176,8 +174,7 @@ bool EditorWindowHostRuntime::CreateHostWindow(
if (!m_hostCoordinator->InitializeHostWindow(
window,
EditorHostWindowRuntimeInitializationParams{
.repoRoot = m_repoRoot,
.captureRoot = m_captureRoot,
.runtimePaths = m_runtimePaths,
.autoCaptureOnStartup = params.autoCaptureOnStartup,
})) {
return failWindowInitialization("managed window initialization failed");