Skip to main content

HeaderOriginal

Struct HeaderOriginal 

Source
pub struct HeaderOriginal {
Show 14 fields pub title: String, pub gamecode: AsciiArray<4>, pub makercode: AsciiArray<2>, pub unitcode: u8, pub seed_select: u8, pub ds_flags: DsFlags, pub rom_version: u8, pub autostart: u8, pub normal_cmd_setting: u32, pub key1_cmd_setting: u32, pub secure_area_delay: Delay, pub rom_nand_end: u16, pub rw_nand_end: u16, pub has_arm9_build_info_offset: bool,
}
Expand description

Values for the original header version, HeaderVersion::Original.

Fields§

§title: String

Short game title, normally in uppercase letters.

§gamecode: AsciiArray<4>

4-character game code in uppercase letters.

§makercode: AsciiArray<2>

2-character maker code, normally “01”.

§unitcode: u8

Unit code, depends on which platform (DS, DSi) this game is for.

§seed_select: u8

Encryption seed select.

§ds_flags: DsFlags

Flags for both DS and DSi.

§rom_version: u8

ROM version, usually zero.

§autostart: u8

Autostart, can skip “Health and Safety” screen.

§normal_cmd_setting: u32

Port 0x40001a4 setting for normal commands.

§key1_cmd_setting: u32

Port 0x40001a4 setting for KEY1 commands.

§secure_area_delay: Delay

Delay to wait for secure area.

§rom_nand_end: u16

NAND end of ROM area in multiples of 0x20000 (0x80000 on DSi).

§rw_nand_end: u16

NAND end of RW area in multiples of 0x20000 (0x80000 on DSi).

§has_arm9_build_info_offset: bool

Whether the header has the ARM9 build info offset.

Trait Implementations§

Source§

impl Default for HeaderOriginal

Source§

fn default() -> HeaderOriginal

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for HeaderOriginal

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for HeaderOriginal

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,