Skip to main content

decode_pro_action_replay

Function decode_pro_action_replay 

Source
pub fn decode_pro_action_replay(code: &str) -> Result<CheatPatch, CheatError>
Expand description

Decode a Pro Action Replay code: 8 hex digits (case-insensitive), no scrambling — AAAAAADD (6 hex-digit address, high; 2 hex-digit value, low).

§Errors

Returns CheatError::UnrecognizedFormat if code isn’t 8 characters, or CheatError::InvalidCharacter if a character isn’t a hex digit.