editor: explicit runtime path contract
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user