[Kernel] Fix glibc exception on empty content_root
This commit is contained in:
parent
0335571354
commit
360e2f5414
|
@ -52,7 +52,9 @@ KernelState::KernelState(Emulator* emulator)
|
||||||
user_profile_ = std::make_unique<xam::UserProfile>();
|
user_profile_ = std::make_unique<xam::UserProfile>();
|
||||||
|
|
||||||
auto content_root = emulator_->content_root();
|
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);
|
content_manager_ = std::make_unique<xam::ContentManager>(this, content_root);
|
||||||
|
|
||||||
assert_null(shared_kernel_state_);
|
assert_null(shared_kernel_state_);
|
||||||
|
|
Loading…
Reference in New Issue