pub struct RomHeader {
pub title: [u8; 20],
pub game_code: [u8; 4],
pub save_type: SaveType,
pub cic: Cic,
}Expand description
Parsed cartridge header (the first 0x40 bytes of the ROM image).
Fields§
§title: [u8; 20]Internal game title (0x20..0x34, space-padded ASCII).
game_code: [u8; 4]Cartridge serial / game code (0x3B..0x3F, e.g. NSME).
save_type: SaveTypeDetected save backend (resolved via the per-game DB, not the header).
cic: CicCIC lockout-chip variant (resolved from the IPL3 checksum / DB).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RomHeader
impl<'de> Deserialize<'de> for RomHeader
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RomHeader
impl StructuralPartialEq for RomHeader
Auto Trait Implementations§
impl Freeze for RomHeader
impl RefUnwindSafe for RomHeader
impl Send for RomHeader
impl Sync for RomHeader
impl Unpin for RomHeader
impl UnsafeUnpin for RomHeader
impl UnwindSafe for RomHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more