cli: ensure an overridden project path is absolute (#2464)

Fixes #1771

Probably want to do some testing with the launcher to ensure no breaking
changes

before/after:

![image](https://user-images.githubusercontent.com/13153231/230793111-f3217ef7-5932-4dcd-83ee-d5f2c8d245fd.png)
This commit is contained in:
Tyler Wilding
2023-04-11 16:57:47 -05:00
committed by GitHub
parent 10ac78200b
commit 2a227699fe
+2 -2
View File
@@ -144,9 +144,9 @@ bool setup_project_path(std::optional<fs::path> project_path_override) {
}
if (project_path_override) {
gFilePathInfo.path_to_data = *project_path_override;
gFilePathInfo.path_to_data = fs::absolute(project_path_override.value());
gFilePathInfo.initialized = true;
lg::info("Using explicitly set project path: {}", project_path_override->string());
lg::info("Using explicitly set project path: {}", gFilePathInfo.path_to_data.string());
return true;
}