ams: distribute sysmodules in single file as stratosphere.romfs

This commit is contained in:
Michael Scire
2021-03-21 02:51:59 -07:00
committed by SciresM
parent 3afd9a737c
commit 79e4c82d7e
3 changed files with 118 additions and 25 deletions

View File

@@ -38,6 +38,9 @@ namespace ams::ncm {
auto partition_file_system = std::make_unique<fssystem::PartitionFileSystem>();
R_UNLESS(partition_file_system != nullptr, ncm::ResultAllocationFailed());
/* Initialize the partition file system. */
R_TRY(partition_file_system->Initialize(std::addressof(this->storage)));
/* Create a mount name and register the file system. */
auto mount_name = impl::CreateUniqueMountName();
R_TRY(fs::fsa::Register(mount_name.str, std::move(partition_file_system)));