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