From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:PlayStation memory card" |
|---|
| claim | "DuckStation picks the import routine by file extension, compared case-insensitively: mcd, mcr, mc, srm, psm, ps and ddf as raw cards (size must be exactly 128 KiB = 0x20000; no 'MC' or other signature is checked); gme as DexDrive; mem and vgs as Virtual Game Station (64-byte header, first four bytes 'VgsM', file size exactly 64+0x20000); psx as PlayStation Magazine (256-byte header, first three bytes 'PSV', size exactly 256+0x20000); a file with no extension or any other extension is rejected." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PlayStation memory card" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "importing a memory card file in DuckStation" |
|---|
| effect | "extension-based dispatch; the VGS and PSV importers copy the data after the header, GME accepts a plain-size file as a raw card and otherwise needs at least 0xF40+0x2000 bytes and pads short files with zeros" |
|---|
| condition | "applies to DuckStation at the cited commit; other tools may detect formats by signature" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Read ImportCardGME (GMEHeader sizeof 0xF40, raw-in-disguise case), ImportCardVGS, ImportCardPSX and ImportCard (extension chain at 636-659). Whether the raw importer validates the size or the 'MC' bytes was not read." |
|---|
| repo | "https://github.com/stenzek/duckstation" |
|---|
| commit | "9766391b610fd836ffda0b3e47ab098d04f72ee8" |
|---|
| path | "src/core/memory_card_image.cpp" |
|---|
| lines | "525-640" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "DuckStation image import by extension" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T12:14:43.308Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T13:17:08.327Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read memory_card_image.cpp 505-670 at 9766391 and DATA_SIZE in memory_card_image.h (128*1024): ImportCardMCD/GME/VGS/PSX and ImportCard extension chain (case-insensitive) match the claim exactly." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:27:02.606Z" |
|---|
| summary | "Resolved the open point (memory_card_image.cpp 510-660 at 9766391): the raw importer ImportCardMCD requires the size to be exactly 128 KiB and checks no signature; the extension compare is…" |
|---|
| changed | |
|---|
|
|
|---|