memcard
Whole memory-card sync: an emulator's Slot-1 card as one owned image.
Whole memory-card sync: an emulator's Slot-1 card as one owned image.
Distinct from the archive path in saves.py, which ships only what a session changed. A card travels whole, so a user's card can be laid down on any pooled container and the previous player's saves never survive into the next session. The card is a directory (a folder card), which is what makes it zippable and replaceable as an image; a single-file card is refused rather than mangled.
attributelog= logging.getLogger(__name__)attributeLOCK= Lock()Serializes whole-card operations.
Staging and backup paths are derived from the card name alone, so two concurrent replaces would rmtree each other mid-write.
attributeHEAD_BYTES= 64Bytes of each member an arrange hook is shown: a GameCube save's whole directory entry.
attributeArrange= Callable[[dict[str, bytes]], Placement]An emulator's hook placing a pushed card's members, given each zip name and its first HEAD_BYTES.