--- name: console-saves description: >- Save Manager. Brings your old memory card saves over, backs them up and syncs them to the cloud so you continue on any device. Reads PS2 memory card images (PCSX2 .ps2 and .mcd, raw 8 MB dumps, with or without ECC) and PCSX2 folder cards, lists every save with its title, copies saves into the port's folder memory card (mc0 next to the game's ELF), imports and exports single saves as .psu, makes timestamped zip backups, and syncs mc0 with an iCloud Drive, Dropbox, Google Drive or Syncthing folder. Card images are read only; mc0 is backed up before anything replaces a save; a sync never silently overwrites (when both sides changed it keeps both and reports a conflict). Use when the user says "bring my saves over", "import my PCSX2 save", "my memory card", "back up my saves", "sync my saves", "continue on my Steam Deck", "restore a backup", "convert this .psu", or before the first run of a port that needs a save. argument-hint: "info|ls|export|psu|backup|restore|sync [flags]" --- # console-saves The Save Manager moves your progress into the port and keeps it safe. The PS2Recomp runtime does not use a card image: it keeps memory card slot 1 as plain folders in `mc0` next to the game's ELF, one folder per save, exactly as the game names them (`mc0/BASLUS-20312GAME/...`), and slot 2 in the sibling folder `mc1` (`ps2xRuntime/src/lib/Kernel/Stubs/MemoryCard.cpp`, `getMcRootPath`). `memcard.py` reads your old card, writes those folders, and then backs them up and syncs them. Honest limits: card images are read only (writing them back needs ECC and is out of scope; PCSX2's own memory card manager can import a `.psu`). Saves from other formats (`.max`, `.cbs`, `.xps`) need a converter first. A save copied to another region's version of a game usually will not load. Whether the port loads a given save depends on how far the port is: test it. `${CLAUDE_SKILL_DIR}` below is this skill's folder (where this SKILL.md lives). ```bash python3 "${CLAUDE_SKILL_DIR}/memcard.py" ls ~/Documents/PCSX2/memcards/Mcd001.ps2 # saves, titles, serials python3 "${CLAUDE_SKILL_DIR}/memcard.py" export Mcd001.ps2 --to console/disc/mc0 --only BASLUS-20312GAME python3 "${CLAUDE_SKILL_DIR}/memcard.py" psu import BASLUS-20312GAME.psu --to console/disc/mc0 python3 "${CLAUDE_SKILL_DIR}/memcard.py" psu export console/disc/mc0/BASLUS-20312GAME --out console/saves/game.psu python3 "${CLAUDE_SKILL_DIR}/memcard.py" backup console/disc/mc0 # console/saves/backups/ python3 "${CLAUDE_SKILL_DIR}/memcard.py" sync console/disc/mc0 --cloud "$HOME/Library/Mobile Documents/com~apple~CloudDocs/console-saves/SLUS-20312" ``` Other commands and flags: `info ` (format, ECC, free space), `ls --files`, `restore --to mc0 [--force]`, `export --force` and `psu import --force` (replace, after a backup), `backup --keep N --label NAME`, `sync --push | --pull`, `sync --prefer local|cloud|newest`, `sync --dry-run`, `--json`. Exit codes: 0 ok, 1 needs attention (a conflict, a save already there, a damaged save skipped, a cloud file not downloaded), 2 bad input (not a card, truncated, damaged directories, an unsafe name). ## What it reads and writes | path | what | | --- | --- | | `*.ps2`, `*.mcd`, `*.bin` card image | read only: superblock, FAT, directories (8 MB = 8,388,608 bytes plain or 8,650,752 with ECC) | | a PCSX2 folder card | read only; its `_pcsx2_*` metadata files are skipped | | `/mc0//` | the port's memory card slot 1 (slot 2: `/mc1`) | | `*.psu` | one save folder: written by `psu export`, read by `psu import` and `psu ls` | | `console/saves/backups/-mc0-.zip` | backups; the newest 20 per card are kept | | `/.console-sync.json` | what the last sync saw, per mc0 and cloud folder (kept out of mc0) | | `/.console-conflicts/