Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

save

Function save 

Source
pub fn save<B: Block, const ACTIONS: usize, const SCORES: usize>(
    card: &mut Card<B>,
    name: &str,
    title: &str,
    profile: &Profile<ACTIONS, SCORES>,
) -> Result<(), CardError>
Expand description

Save one profile into a standard PS1 memory-card file.

A card without the MC header is not written to: this returns CardError::Card(psx_mc::Error::NotFormatted) and leaves the card as it was, so the game can ask the player before calling format_and_save. Formatting drops every save on the card from its directory.