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

@@ -142,8 +142,7 @@ const ::XCEngine::UI::UITextureHandle& EditorWindowRuntimeController::GetTitleBa
bool EditorWindowRuntimeController::Initialize(
const Rendering::Host::EditorWindowRenderRuntimeInitializeParams& renderParams,
const std::filesystem::path& repoRoot,
const std::filesystem::path& captureRoot,
const EditorRuntimePaths& runtimePaths,
bool autoCaptureOnStartup) {
if (m_renderRuntime == nullptr) {
LogRuntimeTrace("app", "window initialize failed: render runtime is null");
@@ -167,7 +166,7 @@ bool EditorWindowRuntimeController::Initialize(
m_frameServices,
m_renderRuntime->GetTextMeasurer());
m_contentController->Initialize(EditorWindowContentInitializationContext{
.repoRoot = repoRoot,
.runtimePaths = runtimePaths,
.frameServices = m_frameServices,
.textureHost = m_renderRuntime->GetTextureHost(),
.resourceService = m_resourceService,
@@ -200,7 +199,7 @@ bool EditorWindowRuntimeController::Initialize(
m_ready = true;
m_screenshotController.Initialize(
captureRoot,
runtimePaths.captureRoot,
m_resourceService.GetExecutableDirectory());
if (autoCaptureOnStartup) {
m_screenshotController.RequestCapture("startup");