mirror of
https://github.com/open-goal/jak-project
synced 2026-08-13 04:10:18 -04:00
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: 
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user