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

save_to_slot_one

Function save_to_slot_one 

Source
pub fn save_to_slot_one<const ACTIONS: usize, const SCORES: usize>(
    port: &mut ControllerPort,
    name: &str,
    title: &str,
    profile: &Profile<ACTIONS, SCORES>,
) -> Result<(), CardError>
Expand description

Save a profile to the controller-1 memory-card slot, driving the port through port. Existing files with the same name are replaced. A card that is not formatted is refused with CardError::Card(psx_mc::Error::NotFormatted) and not touched; use format_and_save_to_slot_one once the player has agreed to format.