17 static constexpr size_t SectionAlignment = 0x20;
25 size_t GetBaseOffset()
override {
27 return util::AlignUp(this->GetFatEntriesOffset() + this->header.fat_size, 0x20);
30 size_t GetFatEntriesOffset()
const override {
31 return this->header.fat_offset;
34 size_t GetFatEntryCount()
const override {
35 return this->header.fat_size /
sizeof(nfs::FileAllocationTableEntry);
38 Result OnFileSystemWrite(fs::BinaryFile &w_bf,
const ssize_t size_diff)
override {
43 Result ReadValidateFrom(fs::File &rf)
override;
44 Result ReadAllFrom(fs::File &rf)
override;
45 Result WriteTo(fs::File &wf)
override;