|
resonance 1.0.1
|
Open of one memory-card file for reading. More...
#include <openreadop.h>


Public Member Functions | |
| OpenReadOp (MemcardCBHandler *pHandler, int nPortSlot, const HxStr &path, int nCookie) | |
| Construct an open for reading. | |
| virtual | ~OpenReadOp () |
| virtual void | Execute () |
| virtual void | NotifyDone () |
| virtual void | InterpretResult () |
| Record the descriptor, or map the failure. | |
| Public Member Functions inherited from MemcardOp | |
| MemcardOp (MemcardCBHandler *pHandler, int nPortSlot, int nCookie) | |
| Construct an operation against one card slot, with no libmc call issued yet. | |
| MemcardOp (MemcardCBHandler *pHandler, int nCookie) | |
| Construct an operation against an open descriptor alone. | |
| virtual | ~MemcardOp () |
| Release the operation. | |
Public Attributes | |
| HxStr | mPath |
| The file to open. | |
| int | mFile |
| The descriptor, valid once mStatus is kMemcardStatusOk. | |
| Public Attributes inherited from MemcardOp | |
| int | mCookie |
| Ticket number Memcard::Cancel() matches on. | |
| int | mIssued |
| Zero until Execute() has run, then 1 while libmc is servicing the call. | |
| int | mResult |
| The libmc result, as sceMcSync() delivered it. | |
| int | mStatus |
| One of MemcardStatus, written by InterpretResult(). | |
Additional Inherited Members | |
| Protected Attributes inherited from MemcardOp | |
| int | mPortSlot |
| MemcardCBHandler * | mHandler |
Open of one memory-card file for reading.
Its RTTI descriptor is at 0x008efb40. It has single inheritance from MemcardOp at offset 0. An instance is 0x28 bytes and the vtable is at 0x0082bca0.
Execute() passes sceMcFileAttrReadable as the open mode, which is the one difference from OpenWriteOp.
| OpenReadOp::OpenReadOp | ( | MemcardCBHandler * | pHandler, |
| int | nPortSlot, | ||
| const HxStr & | path, | ||
| int | nCookie ) |
Construct an open for reading.
| pHandler | The receiver NotifyDone() reports to. |
| nPortSlot | The packed port and slot. |
| path | The file to open. |
| nCookie | The tag Memcard::Cancel() matches on. |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Record the descriptor, or map the failure.
The body writes mFile from the result before it tests the sign. A failed open therefore stores the libmc error code in mFile as well as in MemcardOp::mResult. The behaviour matches the binary.
Reimplemented from MemcardOp.
| HxStr OpenReadOp::mPath |
The file to open.
+0x1c
| int OpenReadOp::mFile |
The descriptor, valid once mStatus is kMemcardStatusOk.
+0x24