[−][src]Struct gbafix::GBAHeader
GBA Header struct.
For details, read GBATEK - GBA Cartridge Header.
Fields
start_code: [u8; 4]
b label
logo: [u8; 156]
logo data, don't touch.
title: [u8; 12]
Game's uppercase ASCII title
game_code: [u8; 4]
Game's uppercase code name
maker_code: [u8; 2]
Manufacturer's uppercase shorthand
ninety_six: u8
This is just always 0x96
main_unit: u8
This is always 0 for all commercial GBA models.
device_type: u8
Generally 0, or enable bit 7 for hardware debugger support, if you have such a device.
reserved_zeroed: [u8; 7]
zeroed space
version: u8
Release version of the game, just using 0 is fine.
checksum: u8
This is set by all the other fields. Set all your fields and then call
update_checksum
.
reserved_zeroed2: [u8; 2]
more zeroed space
Implementations
impl GBAHeader
[src]
pub fn update_checksum(&mut self)
[src]
pub fn calculate_checksum(&self) -> u8
[src]
pub fn set_debugging(&mut self, debug: bool)
[src]
Trait Implementations
impl Clone for GBAHeader
[src]
impl Copy for GBAHeader
[src]
impl Default for GBAHeader
[src]
impl Pod for GBAHeader
[src]
impl Zeroable for GBAHeader
[src]
Auto Trait Implementations
impl RefUnwindSafe for GBAHeader
impl Send for GBAHeader
impl Sync for GBAHeader
impl Unpin for GBAHeader
impl UnwindSafe for GBAHeader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,