Write one payload to a card, together with the save directory and its browser icon.
More...
|
| | SaveFileMCT (MemcardUser *pUser, Memcard *pCard, int nPortSlot, int nCookie) |
| | Construct an idle save task.
|
| virtual | ~SaveFileMCT () |
| void | Save (const HxStr &dirName, const HxStr &fileName, const HxStr &iconTitle, const void *pData, int nLength, int bSkipIconFiles) |
| | Record what to write and start the sequence.
|
| void | RunStep () |
| | Run the step mStep selects and advance to the step after it.
|
| void | BuildIconSys (const char *pszTitle) |
| | Fill mIconSys with the browser icon header.
|
| virtual void | OnCreateDir (CreateDirOp *pOp) |
| virtual void | OnWrite (WriteOp *pOp) |
| virtual void | OnOpenWrite (OpenWriteOp *pOp) |
| virtual void | OnClose (CloseOp *pOp) |
| virtual void | Finish () |
| virtual void | Execute () |
| | Start the sequence.
|
| | MemcardTask (MemcardUser *pUser, Memcard *pCard, int nPortSlot, int nCookie) |
| | Construct an idle task against one card slot.
|
| | MemcardTask (MemcardUser *pUser, Memcard *pCard, int nCookie) |
| | Construct an idle task that does not address a single card slot.
|
| virtual void | UnusedHook () |
| | Do nothing.
|
| Public Member Functions inherited from MemcardCBHandler |
| virtual | ~MemcardCBHandler () |
| | Release the receiver.
|
| virtual void | OnCheckInfo (CheckInfoOp *pOp) |
| | Report a finished card enquiry.
|
| virtual void | OnEntSpace (EntSpaceOp *pOp) |
| | Report a finished free-entry enquiry.
|
| virtual void | OnFormat (FormatOp *pOp) |
| | Report a finished format.
|
| virtual void | OnUnformat (UnformatOp *pOp) |
| | Report a finished unformat.
|
| virtual void | OnListDir (ListDirOp *pOp) |
| | Report a finished directory listing.
|
| virtual void | OnRead (ReadOp *pOp) |
| | Report a finished read.
|
| virtual void | OnOpenRead (OpenReadOp *pOp) |
| | Report a finished open for reading.
|
| virtual void | OnSeek (SeekOp *pOp) |
| | Report a finished seek.
|
| virtual void | OnDeleteFile (DeleteFileOp *pOp) |
| | Report a finished file deletion.
|
| virtual void | OnRenameFile (RenameFileOp *pOp) |
| | Report a finished rename.
|
Write one payload to a card, together with the save directory and its browser icon.
Its RTTI descriptor is at 0x008ef590. It has single inheritance from MemcardTask at offset 0. SavePersonasMCT::~SavePersonasMCT() pins an instance at 0x40c bytes by placing the first SavePersonasMCT member at 0x40c. The vtable is at 0x007daed8.
The task is a nine-step sequence, driven one step per operation report. It creates the directory, writes icon.sys, writes freq1.ico, writes a two-byte marker file under the directory's name, and finally writes the payload. mSkipIconFiles jumps directly from the directory creation to the payload. A save into a directory that already has an icon takes this path.
Three subclasses exist, SavePersonasMCT, SaveGlobalSettingsMCT, and SaveJukeboxPlayListMCT. SaveRemixMCT instead has one of these tasks and receives its report as a MemcardUser.
The European release rewrites the task. An instance is 0x41c bytes, from the allocation in DeleteRemixMCT, and the vtable is at 0x0081ed98. Execute() lists the payload, the marker file, freq1.ico, and icon.sys as SaveFileEntry records in mFiles and enquires about the card. OnCheckInfo() records the free clusters, and a SaveSpaceCheckerMCT then measures the kilobytes the files need beyond the space the directory's present files occupy. A card without that room fails with kMemcardStatusCardFull and the missing kilobytes in mKilobytes. Every save task passes mKilobytes on to its MemcardUser. Otherwise the task creates the directory and writes each file in turn. mSkipIconFiles is stored but has no effect. SaveRemixMCT derives from the class in that release.
The method titles Save(), RunStep(), and BuildIconSys() are inferred. No string in the image identifies any of them.