Module sm64gs2pc::gameshark [−][src]
Expand description
Parser for Nintendo 64 GameShark codes.
Based on this reference: https://macrox.gshi.org/The%20Hacking%20Text.htm
use sm64gs2pc::gameshark::Code;
use sm64gs2pc::gameshark::CodeLine;
assert_eq!(
"8129CE9C 2400\n8129CEC0 2400".parse::<Code>().unwrap(),
Code(vec![
CodeLine::Write16 {
addr: 0x0029CE9C,
value: 0x2400,
},
CodeLine::Write16 {
addr: 0x0029CEC0,
value: 0x2400,
},
])
);
Structs
A parsed Nintendo 64 GameShark code
Enums
A parsed line of a Nintendo 64 GameShark code
Error parsing a GameShark code
Size of a value written or read from a GameShark code