editor: explicit runtime path contract
This commit is contained in:
@@ -545,9 +545,9 @@ void ProjectBrowserModel::Reset() {
|
||||
m_currentFolderId.clear();
|
||||
}
|
||||
|
||||
void ProjectBrowserModel::Initialize(const std::filesystem::path& repoRoot) {
|
||||
void ProjectBrowserModel::Initialize(const std::filesystem::path& projectRoot) {
|
||||
Reset();
|
||||
m_assetsRootPath = (repoRoot / "project/Assets").lexically_normal();
|
||||
m_assetsRootPath = (projectRoot / "Assets").lexically_normal();
|
||||
TraceProjectBrowser("ProjectBrowserModel::Initialize assetsRoot=" + PathToUtf8String(m_assetsRootPath));
|
||||
std::error_code errorCode = {};
|
||||
if (!std::filesystem::exists(m_assetsRootPath, errorCode)) {
|
||||
|
||||
Reference in New Issue
Block a user