|
| | FormatCardMCT (MemcardUser *pUser, Memcard *pCard, int nPortSlot, int nCookie, int bUnformat) |
| | Construct an idle format task.
|
| virtual | ~FormatCardMCT () |
| void | IssueFormat () |
| | Queue the format or the unformat, whichever mUnformat selects.
|
| virtual void | OnCheckInfo (CheckInfoOp *pOp) |
| | Refuse a formatted card, and otherwise queue the format.
|
| virtual void | OnFormat (FormatOp *pOp) |
| virtual void | Finish () |
| virtual void | Execute () |
| | 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 | OnEntSpace (EntSpaceOp *pOp) |
| | Report a finished free-entry enquiry.
|
| virtual void | OnUnformat (UnformatOp *pOp) |
| | Report a finished unformat.
|
| virtual void | OnCreateDir (CreateDirOp *pOp) |
| | Report a finished directory creation.
|
| virtual void | OnListDir (ListDirOp *pOp) |
| | Report a finished directory listing.
|
| virtual void | OnRead (ReadOp *pOp) |
| | Report a finished read.
|
| virtual void | OnWrite (WriteOp *pOp) |
| | Report a finished write.
|
| virtual void | OnOpenWrite (OpenWriteOp *pOp) |
| | Report a finished open for writing.
|
| virtual void | OnOpenRead (OpenReadOp *pOp) |
| | Report a finished open for reading.
|
| virtual void | OnClose (CloseOp *pOp) |
| | Report a finished close.
|
| 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.
|
Format or unformat the card in one slot.
Its RTTI descriptor is at 0x008ef290. It has single inheritance from MemcardTask at offset 0. An instance is 0x20 bytes and the vtable is at 0x007dabb8. The accessor at 0x00184c90 belongs to this class rather than to MemcardTask. The descriptor it guards on at entry establishes the owning class.
The task enquires first and refuses to act on a card that reports itself formatted, which is what kMemcardStatusAlreadyFormatted is for. Otherwise it queues a format, or an unformat when mUnformat is set, and reports through whichever MemcardUser method matches the direction.
One asymmetry is faithful and looks like an oversight in the original. The class overrides OnFormat() but not OnUnformat(), so an unformat's completion arrives at the empty default body of MemcardCBHandler and the task never finishes. Only the format direction is observed.