mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-23 12:22:08 +00:00
fs.mitm: Fix typo. map impl takes 2-3 seconds to boot botw.
This commit is contained in:
parent
c536665fe9
commit
90226ec438
1 changed files with 3 additions and 2 deletions
|
@ -288,6 +288,7 @@ void RomFSBuildContext::Build(std::vector<RomFSSourceInfo> *out_infos) {
|
||||||
entry_offset = 0;
|
entry_offset = 0;
|
||||||
for (const auto &it : this->directories) {
|
for (const auto &it : this->directories) {
|
||||||
cur_dir = it.second;
|
cur_dir = it.second;
|
||||||
|
cur_dir->entry_offset = entry_offset;
|
||||||
entry_offset += sizeof(RomFSDirectoryEntry) + ((cur_dir->path_len - cur_dir->cur_path_ofs + 3) & ~3);
|
entry_offset += sizeof(RomFSDirectoryEntry) + ((cur_dir->path_len - cur_dir->cur_path_ofs + 3) & ~3);
|
||||||
|
|
||||||
/* Assign deferred parent/sibling ownership. */
|
/* Assign deferred parent/sibling ownership. */
|
||||||
|
@ -387,7 +388,7 @@ void RomFSBuildContext::Build(std::vector<RomFSSourceInfo> *out_infos) {
|
||||||
header->file_table_ofs = header->file_hash_table_ofs + header->file_hash_table_size;
|
header->file_table_ofs = header->file_hash_table_ofs + header->file_hash_table_size;
|
||||||
|
|
||||||
/* For debugging, uncomment this to get a log of the generated metadata tables. */
|
/* For debugging, uncomment this to get a log of the generated metadata tables. */
|
||||||
/*
|
|
||||||
{
|
{
|
||||||
FsFileSystem sd_fs;
|
FsFileSystem sd_fs;
|
||||||
if (R_SUCCEEDED(fsMountSdcard(&sd_fs))) {
|
if (R_SUCCEEDED(fsMountSdcard(&sd_fs))) {
|
||||||
|
@ -402,7 +403,7 @@ void RomFSBuildContext::Build(std::vector<RomFSSourceInfo> *out_infos) {
|
||||||
fsFsClose(&sd_fs);
|
fsFsClose(&sd_fs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
out_infos->emplace_back(header->dir_hash_table_ofs, this->dir_hash_table_size + this->dir_table_size + this->file_hash_table_size + this->file_table_size, metadata, RomFSDataSource::Memory);
|
out_infos->emplace_back(header->dir_hash_table_ofs, this->dir_hash_table_size + this->dir_table_size + this->file_hash_table_size + this->file_table_size, metadata, RomFSDataSource::Memory);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue