libeditwl
Lightweight C++ library for Nintendo DS(i) formats
Loading...
Searching...
No Matches
libeditwl
include
twl
fmt
fmt_Utility.hpp
1
2
#pragma once
3
#include <twl/fmt/fmt_Common.hpp>
4
#include <twl/fmt/nfs/nfs_NitroFs.hpp>
5
6
namespace
twl::fmt {
7
8
struct
Utility :
public
fs::FileFormat
,
public
nfs::NitroFileSystemFormat
{
9
10
struct
Header
{
11
u32 fnt_offset;
12
u32 fnt_size;
13
u32 fat_offset;
14
u32 fat_size;
15
};
16
17
static
constexpr
size_t
SectionAlignment = 0x20;
18
19
Header
header;
20
21
Utility() {}
22
Utility
(
const
Utility
&) =
delete
;
23
Utility
(
Utility
&&) =
default
;
24
25
Result
ReadValidateFrom(
fs::File
&rf)
override
;
26
Result
ReadAllFrom(
fs::File
&rf)
override
;
27
Result
WriteTo(
fs::File
&wf)
override
;
28
};
29
30
}
twl::fmt::nfs::NitroFileSystemFormat
Definition
nfs_NitroFs.hpp:100
twl::fs::FileFormat
Definition
fs_FileFormat.hpp:7
twl::fs::File
Definition
fs_File.hpp:236
twl::Result
Definition
twl_Include.hpp:62
twl::fmt::Utility::Header
Definition
fmt_Utility.hpp:10
twl::fmt::Utility
Definition
fmt_Utility.hpp:8
Generated by
1.16.1