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.