|
resonance 1.0.1
|
Listing of one directory on a card. More...
#include <listdirop.h>


Public Member Functions | |
| ListDirOp (MemcardCBHandler *pHandler, int nPortSlot, const HxStr &path, int nCookie, unsigned nMode) | |
| Construct a listing. | |
| virtual | ~ListDirOp () |
| virtual void | Execute () |
| virtual void | NotifyDone () |
| virtual void | InterpretResult () |
| Record the entry count and publish the shared table, 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 directory the listing covers. | |
| int | mEntryCount |
| Entries the listing delivered, valid once mStatus is kMemcardStatusOk. | |
| unsigned | mMode |
| The sceMcGetDir() mode. | |
| int | mTruncated |
| Non-zero once the listing filled the table and further entries may remain. | |
| sceMcTblGetDir * | mEntries |
| The shared entry table at 0x00726a40. | |
| 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 |
Listing of one directory on a card.
Its RTTI descriptor is at 0x008f47c0. It has single inheritance from MemcardOp at offset 0. An instance is 0x34 bytes and the vtable is at 0x0082bd90.
Every listing writes into the one shared table at 0x00726a40. A second listing therefore overwrites the first, and mEntries addresses that table rather than storage of its own.
| ListDirOp::ListDirOp | ( | MemcardCBHandler * | pHandler, |
| int | nPortSlot, | ||
| const HxStr & | path, | ||
| int | nCookie, | ||
| unsigned | nMode ) |
Construct a listing.
| pHandler | The receiver NotifyDone() reports to. |
| nPortSlot | The packed port and slot. |
| path | The directory to list. |
| nCookie | The tag Memcard::Cancel() matches on. |
| nMode | The sceMcGetDir() mode, which selects between a fresh listing and a continuation of the previous one. |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Record the entry count and publish the shared table, or map the failure.
sceMcResNoEntry becomes kMemcardStatusNoDirectory here rather than kMemcardStatusNoEntry, which is the one place that value is produced.
Reimplemented from MemcardOp.
| HxStr ListDirOp::mPath |
The directory the listing covers.
+0x1c
| int ListDirOp::mEntryCount |
Entries the listing delivered, valid once mStatus is kMemcardStatusOk.
+0x24
| unsigned ListDirOp::mMode |
The sceMcGetDir() mode.
+0x28
| int ListDirOp::mTruncated |
Non-zero once the listing filled the table and further entries may remain.
+0x2c
| sceMcTblGetDir* ListDirOp::mEntries |
The shared entry table at 0x00726a40.
+0x30