[App] Support a relative content path.

This commit is contained in:
gibbed 2020-04-12 16:06:17 -05:00 committed by Rick Gibbed
parent edb93cc19c
commit fdfc55c8fd
1 changed files with 6 additions and 0 deletions

View File

@ -233,6 +233,12 @@ int xenia_main(const std::vector<std::string>& args) {
std::filesystem::path content_root = cvars::content_root;
if (content_root.empty()) {
content_root = storage_root / "content";
} else {
// If content root isn't an absolute path, then it should be relative to the
// storage root.
if (!content_root.is_absolute()) {
content_root = storage_root / content_root;
}
}
content_root = std::filesystem::absolute(content_root);
XELOGI("Content root: {}", xe::path_to_utf8(content_root));