70 void Load(
const HxStr &path,
void *pBuffer,
int nLength);
Enquiry about the card in one slot.
Definition checkinfoop.h:13
Close of an open memory-card file.
Definition closeop.h:14
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
virtual void OnRead(ReadOp *pOp)
void * mBuffer
Definition loadfilemct.h:144
int mLength
Definition loadfilemct.h:147
LoadFileMCT(MemcardUser *pUser, Memcard *pCard, int nPortSlot, int nCookie)
Construct an idle load task.
void Load(const HxStr &path, void *pBuffer, int nLength)
Record what to read and start the sequence.
void SetState(int nState)
Record the next state.
int mFile
Definition loadfilemct.h:153
virtual void OnClose(CloseOp *pOp)
HxStr mPath
Definition loadfilemct.h:150
void RunStep()
Run the step mState selects and advance to the state after it.
virtual void OnOpenRead(OpenReadOp *pOp)
int mState
Definition loadfilemct.h:141
virtual void OnCheckInfo(CheckInfoOp *pOp)
int mBytesRead
Bytes the read transferred, valid once the task has reported kMemcardStatusOk.
Definition loadfilemct.h:137
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
Open of one memory-card file for reading.
Definition openreadop.h:15
Read from an open memory-card file.
Definition readop.h:14
LoadFileState
States LoadFileMCT::mState selects between.
Definition loadfilemct.h:16
@ kLoadFileStateReport
Definition loadfilemct.h:19
@ kLoadFileStateOpen
Definition loadfilemct.h:17
@ kLoadFileStateDone
Definition loadfilemct.h:20
@ kLoadFileStateRead
Definition loadfilemct.h:18