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

Enquiry about the free directory entries under one path. More...

#include <entspaceop.h>

Inheritance diagram for EntSpaceOp:
Collaboration diagram for EntSpaceOp:

Public Member Functions

 EntSpaceOp (MemcardCBHandler *pHandler, int nPortSlot, const HxStr &path, int nCookie)
 Construct an enquiry against one directory.
virtual ~EntSpaceOp ()
virtual void Execute ()
virtual void NotifyDone ()
virtual void InterpretResult ()
 Report kMemcardStatusOk for any result that is not negative, and kMemcardStatusNotFormatted for sceMcResNoFormat.
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 enquiry measures.
int mReserved24
 Reserved.
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

Enquiry about the free directory entries under one path.

Its RTTI descriptor is at 0x008ef048. It has single inheritance from MemcardOp at offset 0. An instance is 0x28 bytes and the vtable is at 0x0082be50.

Execute() calls sceMcGetEntSpace(), whose result is the free entry count rather than a status, so InterpretResult() treats every value that is not negative as success. The count survives only in MemcardOp::mResult, because InterpretResult() copies it nowhere.

Constructor & Destructor Documentation

◆ EntSpaceOp()

EntSpaceOp::EntSpaceOp ( MemcardCBHandler * pHandler,
int nPortSlot,
const HxStr & path,
int nCookie )

Construct an enquiry against one directory.

Parameters
pHandlerThe receiver NotifyDone() reports to.
nPortSlotThe packed port and slot.
pathThe directory to measure.
nCookieThe tag Memcard::Cancel() matches on.
Ghidra address:
NTSC-U/C: 0x0055e418
Ghidra address:
PAL: 0x0059f6e8

◆ ~EntSpaceOp()

virtual EntSpaceOp::~EntSpaceOp ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055d418
Ghidra address:
PAL: 0x0059e660

Member Function Documentation

◆ Execute()

virtual void EntSpaceOp::Execute ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055e4a8
Ghidra address:
PAL: 0x0059f778

Reimplemented from MemcardOp.

◆ NotifyDone()

virtual void EntSpaceOp::NotifyDone ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055d480
Ghidra address:
PAL: 0x0059e6d8

Reimplemented from MemcardOp.

◆ InterpretResult()

virtual void EntSpaceOp::InterpretResult ( )
virtual

Report kMemcardStatusOk for any result that is not negative, and kMemcardStatusNotFormatted for sceMcResNoFormat.

Ghidra address:
NTSC-U/C: 0x0055e4f8
Ghidra address:
PAL: 0x0059f7c8

Reimplemented from MemcardOp.

Member Data Documentation

◆ mPath

HxStr EntSpaceOp::mPath

The directory the enquiry measures.

+0x1c

◆ mReserved24

int EntSpaceOp::mReserved24

Reserved.

The operation is 0x28 bytes where its recovered members end at 0x24, and the word is neither written by the constructor nor read anywhere in the image. Memcard::EntSpace() is itself never called. The class is never exercised.

+0x24


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