libeditwl
Lightweight C++ library for Nintendo DS(i) formats
Loading...
Searching...
No Matches
twl::fmt::ROM Struct Reference
Inheritance diagram for twl::fmt::ROM:
twl::fs::FileFormat twl::fmt::nfs::NitroFileSystemFormat

Classes

struct  Banner
 
struct  Header
 
struct  NitroFooter
 
struct  OverlayTableEntry
 
struct  StartModuleParams
 

Public Types

enum class  ProcessorType : u8 { ARM7 , ARM9 }
 
enum class  Language : u8 {
  Ja , En , Fr , Ge ,
  It , Es , Count
}
 
enum class  Region : u8 { Normal = 0x00 , Korea = 0x40 , China = 0x80 }
 
enum class  UnitCode : u8 { NDS = 0x00 , NDS_NDSi = 0x02 , NDSi = 0x03 }
 
enum class  AutostartFlags : u8 { None = 0 , SkipHealthSafetyPress = TWL_BITMASK(2) }
 

Public Member Functions

 ROM (const ROM &)=delete
 
 ROM (ROM &&)=default
 
Result ReadValidateFrom (fs::File &rf) override
 
Result ReadAllFrom (fs::File &rf) override
 
Result WriteTo (fs::File &wf) override
 
Result CreateOverlayFile (nfs::NitroFileSystemFile &file, const OverlayTableEntry &entry)
 
- Public Member Functions inherited from twl::fs::FileFormat
Result ReadFrom (File &rf)
 
- Public Member Functions inherited from twl::fmt::nfs::NitroFileSystemFormat
Result CreateFileById (NitroFileSystemFile &file, const u32 file_id)
 
Result CreateFileByPath (NitroFileSystemFile &file, const std::string &path)
 

Public Attributes

Header header
 
Banner banner
 
std::vector< std::string > lib_symbols
 
fs::BufferReaderWriter arm7_rw
 
fs::BufferReaderWriter arm9_rw
 
std::optional< NitroFooterfooter
 
std::optional< StartModuleParamsstart_module_params
 
std::vector< OverlayTableEntryarm7_ovl_table
 
std::vector< OverlayTableEntryarm9_ovl_table
 

Static Public Attributes

static constexpr u32 GameTitleLength = 128
 
static constexpr size_t SectionAlignment = 0x200
 

Additional Inherited Members

- Protected Attributes inherited from twl::fmt::nfs::NitroFileSystemFormat
NitroFileSystem nitro_fs
 

Member Function Documentation

◆ ReadAllFrom()

Result twl::fmt::ROM::ReadAllFrom ( fs::File & rf)
overridevirtual

Implements twl::fs::FileFormat.

◆ ReadValidateFrom()

Result twl::fmt::ROM::ReadValidateFrom ( fs::File & rf)
overridevirtual

Implements twl::fs::FileFormat.

◆ WriteTo()

Result twl::fmt::ROM::WriteTo ( fs::File & wf)
overridevirtual

Implements twl::fs::FileFormat.


The documentation for this struct was generated from the following files: