resonance 1.0.1
Loading...
Searching...
No Matches
formatcardmct.h
Go to the documentation of this file.
1#pragma once
2
4
12
29class FormatCardMCT : public MemcardTask {
30public:
44 FormatCardMCT(MemcardUser *pUser, Memcard *pCard, int nPortSlot, int nCookie, int bUnformat);
45
50 virtual ~FormatCardMCT();
51
62
72 virtual void OnCheckInfo(CheckInfoOp *pOp);
73
78 virtual void OnFormat(FormatOp *pOp);
79
84 virtual void Finish();
85
90 virtual void Execute();
91
92private:
93 // Zero to format, non-zero to unformat. Also selects which MemcardUser method Finish() reports
94 // to. +0x1c
95 int mUnformat;
96};
Enquiry about the card in one slot.
Definition checkinfoop.h:13
virtual void OnFormat(FormatOp *pOp)
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.
FormatCardMCT(MemcardUser *pUser, Memcard *pCard, int nPortSlot, int nCookie, int bUnformat)
Construct an idle format task.
virtual void Finish()
virtual void Execute()
Format of the card in one slot.
Definition formatop.h:11
MemcardTask(MemcardUser *pUser, Memcard *pCard, int nPortSlot, int nCookie)
Construct an idle task against one card slot.
Receiver notified once a memory-card task has finished.
Definition memcarduser.h:24
Queue of memory-card operations, with one entry point per libmc call.
Definition memcard.h:29
constexpr int kMemcardStatusAlreadyFormatted
Status FormatCardMCT reports when the card is already formatted.
Definition formatcardmct.h:11