mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-28 14:02:40 +02:00
fs: fix RomFs GetEntryType (fixes mariko daybreak)
This commit is contained in:
parent
159ca97a9d
commit
33ea9ed3aa
@ -584,8 +584,8 @@ namespace ams::fssystem {
|
|||||||
AMS_ASSERT(out_entry != nullptr);
|
AMS_ASSERT(out_entry != nullptr);
|
||||||
|
|
||||||
const Result dir_res = this->dir_table.Get(out_pos, out_entry, key);
|
const Result dir_res = this->dir_table.Get(out_pos, out_entry, key);
|
||||||
R_UNLESS(R_FAILED(dir_res), dir_res);
|
R_UNLESS(R_FAILED(dir_res), dir_res);
|
||||||
R_UNLESS(!fs::ResultDbmKeyNotFound::Includes(dir_res), dir_res);
|
R_UNLESS(fs::ResultDbmKeyNotFound::Includes(dir_res), dir_res);
|
||||||
|
|
||||||
Position pos = 0;
|
Position pos = 0;
|
||||||
RomFileEntry entry = {};
|
RomFileEntry entry = {};
|
||||||
@ -601,8 +601,8 @@ namespace ams::fssystem {
|
|||||||
|
|
||||||
RomEntryKey key = {};
|
RomEntryKey key = {};
|
||||||
const Result dir_res = this->dir_table.GetByPosition(std::addressof(key), out_entry, nullptr, nullptr, pos);
|
const Result dir_res = this->dir_table.GetByPosition(std::addressof(key), out_entry, nullptr, nullptr, pos);
|
||||||
R_UNLESS(R_FAILED(dir_res), dir_res);
|
R_UNLESS(R_FAILED(dir_res), dir_res);
|
||||||
R_UNLESS(!fs::ResultDbmKeyNotFound::Includes(dir_res), dir_res);
|
R_UNLESS(fs::ResultDbmKeyNotFound::Includes(dir_res), dir_res);
|
||||||
|
|
||||||
RomFileEntry entry = {};
|
RomFileEntry entry = {};
|
||||||
const Result file_res = this->file_table.GetByPosition(std::addressof(key), std::addressof(entry), nullptr, nullptr, pos);
|
const Result file_res = this->file_table.GetByPosition(std::addressof(key), std::addressof(entry), nullptr, nullptr, pos);
|
||||||
@ -616,8 +616,8 @@ namespace ams::fssystem {
|
|||||||
AMS_ASSERT(out_entry != nullptr);
|
AMS_ASSERT(out_entry != nullptr);
|
||||||
|
|
||||||
const Result file_res = this->file_table.Get(out_pos, out_entry, key);
|
const Result file_res = this->file_table.Get(out_pos, out_entry, key);
|
||||||
R_UNLESS(R_FAILED(file_res), file_res);
|
R_UNLESS(R_FAILED(file_res), file_res);
|
||||||
R_UNLESS(!fs::ResultDbmKeyNotFound::Includes(file_res), file_res);
|
R_UNLESS(fs::ResultDbmKeyNotFound::Includes(file_res), file_res);
|
||||||
|
|
||||||
Position pos = 0;
|
Position pos = 0;
|
||||||
RomDirectoryEntry entry = {};
|
RomDirectoryEntry entry = {};
|
||||||
@ -633,8 +633,8 @@ namespace ams::fssystem {
|
|||||||
|
|
||||||
RomEntryKey key = {};
|
RomEntryKey key = {};
|
||||||
const Result file_res = this->file_table.GetByPosition(std::addressof(key), out_entry, nullptr, nullptr, pos);
|
const Result file_res = this->file_table.GetByPosition(std::addressof(key), out_entry, nullptr, nullptr, pos);
|
||||||
R_UNLESS(R_FAILED(file_res), file_res);
|
R_UNLESS(R_FAILED(file_res), file_res);
|
||||||
R_UNLESS(!fs::ResultDbmKeyNotFound::Includes(file_res), file_res);
|
R_UNLESS(fs::ResultDbmKeyNotFound::Includes(file_res), file_res);
|
||||||
|
|
||||||
RomDirectoryEntry entry = {};
|
RomDirectoryEntry entry = {};
|
||||||
const Result dir_res = this->dir_table.GetByPosition(std::addressof(key), std::addressof(entry), nullptr, nullptr, pos);
|
const Result dir_res = this->dir_table.GetByPosition(std::addressof(key), std::addressof(entry), nullptr, nullptr, pos);
|
||||||
|
@ -479,8 +479,8 @@ namespace ams::fs {
|
|||||||
AMS_ASSERT(out_entry != nullptr);
|
AMS_ASSERT(out_entry != nullptr);
|
||||||
|
|
||||||
const Result dir_res = this->dir_table.Get(out_pos, out_entry, key);
|
const Result dir_res = this->dir_table.Get(out_pos, out_entry, key);
|
||||||
R_UNLESS(R_FAILED(dir_res), dir_res);
|
R_UNLESS(R_FAILED(dir_res), dir_res);
|
||||||
R_UNLESS(!fs::ResultDbmKeyNotFound::Includes(dir_res), dir_res);
|
R_UNLESS(fs::ResultDbmKeyNotFound::Includes(dir_res), dir_res);
|
||||||
|
|
||||||
Position pos = 0;
|
Position pos = 0;
|
||||||
RomFileEntry entry = {};
|
RomFileEntry entry = {};
|
||||||
@ -496,8 +496,8 @@ namespace ams::fs {
|
|||||||
|
|
||||||
RomEntryKey key = {};
|
RomEntryKey key = {};
|
||||||
const Result dir_res = this->dir_table.GetByPosition(std::addressof(key), out_entry, pos);
|
const Result dir_res = this->dir_table.GetByPosition(std::addressof(key), out_entry, pos);
|
||||||
R_UNLESS(R_FAILED(dir_res), dir_res);
|
R_UNLESS(R_FAILED(dir_res), dir_res);
|
||||||
R_UNLESS(!fs::ResultDbmKeyNotFound::Includes(dir_res), dir_res);
|
R_UNLESS(fs::ResultDbmKeyNotFound::Includes(dir_res), dir_res);
|
||||||
|
|
||||||
RomFileEntry entry = {};
|
RomFileEntry entry = {};
|
||||||
const Result file_res = this->file_table.GetByPosition(std::addressof(key), std::addressof(entry), pos);
|
const Result file_res = this->file_table.GetByPosition(std::addressof(key), std::addressof(entry), pos);
|
||||||
@ -511,8 +511,8 @@ namespace ams::fs {
|
|||||||
AMS_ASSERT(out_entry != nullptr);
|
AMS_ASSERT(out_entry != nullptr);
|
||||||
|
|
||||||
const Result file_res = this->file_table.Get(out_pos, out_entry, key);
|
const Result file_res = this->file_table.Get(out_pos, out_entry, key);
|
||||||
R_UNLESS(R_FAILED(file_res), file_res);
|
R_UNLESS(R_FAILED(file_res), file_res);
|
||||||
R_UNLESS(!fs::ResultDbmKeyNotFound::Includes(file_res), file_res);
|
R_UNLESS(fs::ResultDbmKeyNotFound::Includes(file_res), file_res);
|
||||||
|
|
||||||
Position pos = 0;
|
Position pos = 0;
|
||||||
RomDirectoryEntry entry = {};
|
RomDirectoryEntry entry = {};
|
||||||
@ -528,8 +528,8 @@ namespace ams::fs {
|
|||||||
|
|
||||||
RomEntryKey key = {};
|
RomEntryKey key = {};
|
||||||
const Result file_res = this->file_table.GetByPosition(std::addressof(key), out_entry, pos);
|
const Result file_res = this->file_table.GetByPosition(std::addressof(key), out_entry, pos);
|
||||||
R_UNLESS(R_FAILED(file_res), file_res);
|
R_UNLESS(R_FAILED(file_res), file_res);
|
||||||
R_UNLESS(!fs::ResultDbmKeyNotFound::Includes(file_res), file_res);
|
R_UNLESS(fs::ResultDbmKeyNotFound::Includes(file_res), file_res);
|
||||||
|
|
||||||
RomDirectoryEntry entry = {};
|
RomDirectoryEntry entry = {};
|
||||||
const Result dir_res = this->dir_table.GetByPosition(std::addressof(key), std::addressof(entry), pos);
|
const Result dir_res = this->dir_table.GetByPosition(std::addressof(key), std::addressof(entry), pos);
|
||||||
|
@ -463,6 +463,8 @@ namespace ams::updater {
|
|||||||
return BootImageUpdateType::Erista;
|
return BootImageUpdateType::Erista;
|
||||||
case spl::HardwareType::Hoag:
|
case spl::HardwareType::Hoag:
|
||||||
case spl::HardwareType::Iowa:
|
case spl::HardwareType::Iowa:
|
||||||
|
case spl::HardwareType::Calcio:
|
||||||
|
case spl::HardwareType::_Five_:
|
||||||
return BootImageUpdateType::Mariko;
|
return BootImageUpdateType::Mariko;
|
||||||
AMS_UNREACHABLE_DEFAULT_CASE();
|
AMS_UNREACHABLE_DEFAULT_CASE();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user