[Kernel] Fix glibc exception on empty content_root

This commit is contained in:
Joel Linn 2021-09-15 22:10:57 +02:00 committed by Rick Gibbed
parent 0335571354
commit 360e2f5414
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,9 @@ KernelState::KernelState(Emulator* emulator)
user_profile_ = std::make_unique<xam::UserProfile>();
auto content_root = emulator_->content_root();
content_root = std::filesystem::absolute(content_root);
if (!content_root.empty()) {
content_root = std::filesystem::absolute(content_root);
}
content_manager_ = std::make_unique<xam::ContentManager>(this, content_root);
assert_null(shared_kernel_state_);