resonance 1.0.1
Loading...
Searching...
No Matches
ListDirOp Class Reference

Listing of one directory on a card. More...

#include <listdirop.h>

Inheritance diagram for ListDirOp:
Collaboration diagram for ListDirOp:

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ ListDirOp()

ListDirOp::ListDirOp ( MemcardCBHandler * pHandler,
int nPortSlot,
const HxStr & path,
int nCookie,
unsigned nMode )

Construct a listing.

Parameters
pHandlerThe receiver NotifyDone() reports to.
nPortSlotThe packed port and slot.
pathThe directory to list.
nCookieThe tag Memcard::Cancel() matches on.
nModeThe sceMcGetDir() mode, which selects between a fresh listing and a continuation of the previous one.
Ghidra address:
NTSC-U/C: 0x0055e778
Ghidra address:
PAL: 0x0059fa48

◆ ~ListDirOp()

virtual ListDirOp::~ListDirOp ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055d868
Ghidra address:
PAL: 0x0059ead0

Member Function Documentation

◆ Execute()

virtual void ListDirOp::Execute ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055e818
Ghidra address:
PAL: 0x0059fae8

Reimplemented from MemcardOp.

◆ NotifyDone()

virtual void ListDirOp::NotifyDone ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055d8d0
Ghidra address:
PAL: 0x0059eb48

Reimplemented from MemcardOp.

◆ InterpretResult()

virtual void ListDirOp::InterpretResult ( )
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.

Ghidra address:
NTSC-U/C: 0x0055e870
Ghidra address:
PAL: 0x0059fb40

Reimplemented from MemcardOp.

Member Data Documentation

◆ mPath

HxStr ListDirOp::mPath

The directory the listing covers.

+0x1c

◆ mEntryCount

int ListDirOp::mEntryCount

Entries the listing delivered, valid once mStatus is kMemcardStatusOk.

+0x24

◆ mMode

unsigned ListDirOp::mMode

The sceMcGetDir() mode.

+0x28

◆ mTruncated

int ListDirOp::mTruncated

Non-zero once the listing filled the table and further entries may remain.

+0x2c

◆ mEntries

sceMcTblGetDir* ListDirOp::mEntries

The shared entry table at 0x00726a40.

+0x30


The documentation for this class was generated from the following file: