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

format_and_save

Function format_and_save 

Source
pub fn format_and_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

Format the card if it has no MC header, then save the profile. Call this only after the player agreed to format: it replaces the directory of an unformatted card, and every save the card held stops being listed. A formatted card is left alone and the profile is saved onto it.