How markmental/japs2me works
JAPS2ME is a command-line manager for PCSX2 PS2 memory-card images. Its main workflow routes list, add, delete, and export requests: listing reads card saves and formats a summary; importing parses a CBS or MAX container into a shared save model, then stages, writes, verifies, and commits it; deletion edits the card directly; export encodes a card save as CBS. The map also shows the card-format internals and title metadata. Source excerpts establish the parser, card, and transaction relationships; README-documented command flows cover unsampled command implementations.
Main entry points: card.rs Card operations · main.rs Command routing · save.rs Save model · list.rs List formatting
Components 17
CLI workflows
- Command routing
src/main.rs - List formatting
src/commands/list.rs
Save containers
- Save model
src/save.rs - CodeBreaker codec
src/codebreaker/format.rs - MAX Drive parser
src/max_drive.rs
Memory card
- Card operations
src/memory_card/card.rs - Staged import
src/memory_card/transaction.rs
Card internals
- Directory entries
src/memory_card/directory.rs - FAT handling
src/memory_card/fat.rs - Superblock
src/memory_card/superblock.rs - Page ECC
src/memory_card/ecc.rs - Title metadata
src/memory_card/icon_sys.rs
Other components
- CLI user
- Card image
- CBS save file
- MAX save file
- Terminal output
Connections 20
- CLI user → Command routing: runs commands
README.md - Command routing → Card operations: lists saves
README.md - Card operations → List formatting: formats summaries
README.md - List formatting → Terminal output: renders table
src/commands/list.rs - Card image → Card operations: reads or edits
README.md - Command routing → Save model: imports save
README.md - CBS save file → Save model: parses CBS
src/save.rs - MAX save file → Save model: parses MAX
src/save.rs - Save model → CodeBreaker codec: encodes export
src/codebreaker/format.rs - Command routing → Card operations: deletes save
README.md - Command routing → Card operations: exports save
README.md - Command routing → Staged import: stages import
README.md - Staged import → Card operations: writes and verifies
src/memory_card/transaction.rs - Card operations → Directory entries: uses entries
src/memory_card/card.rs - Card operations → FAT handling: uses allocation
src/memory_card/card.rs - Card operations → Superblock: reads geometry
src/memory_card/card.rs - Card operations → Page ECC: generates spare data
src/memory_card/card.rs - Card operations → Title metadata: reads titles
src/memory_card/card.rs - Card operations → CodeBreaker codec: encodes save
src/memory_card/card.rs - Card operations → Card image: writes changes
README.md