ds_rom::rom

Struct HeaderOriginal

source
pub struct HeaderOriginal {
    pub title: String,
    pub gamecode: AsciiArray<4>,
    pub makercode: AsciiArray<2>,
    pub unitcode: u8,
    pub seed_select: u8,
    pub ds_flags: DsFlags,
    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,
}
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.

§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).

Trait Implementations§

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, 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>,