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

Enquiry about the card in one slot. More...

#include <checkinfoop.h>

Inheritance diagram for CheckInfoOp:
Collaboration diagram for CheckInfoOp:

Public Member Functions

 CheckInfoOp (MemcardCBHandler *pHandler, int nPortSlot, int nCookie)
 Construct an enquiry against one slot.
virtual ~CheckInfoOp ()
virtual void Execute ()
virtual void NotifyDone ()
virtual void InterpretResult ()
 Report kMemcardStatusNotFormatted for sceMcResNoFormat, and kMemcardStatusOk for both zero and sceMcResChangedCard.
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

int mType
 One of sceMcTypeNoCard, sceMcTypePS1, sceMcTypePS2 or sceMcTypePDA.
int mFormatted
 Non-zero once the card is formatted.
int mFree
 Free clusters on the card.
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 card in one slot.

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

Execute() calls sceMcGetInfo(), which fills all three result members at once.

Constructor & Destructor Documentation

◆ CheckInfoOp()

CheckInfoOp::CheckInfoOp ( MemcardCBHandler * pHandler,
int nPortSlot,
int nCookie )

Construct an enquiry against one slot.

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

◆ ~CheckInfoOp()

virtual CheckInfoOp::~CheckInfoOp ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055d320
Ghidra address:
PAL: 0x0059e568

Member Function Documentation

◆ Execute()

virtual void CheckInfoOp::Execute ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055e390
Ghidra address:
PAL: 0x0059f660

Reimplemented from MemcardOp.

◆ NotifyDone()

virtual void CheckInfoOp::NotifyDone ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055d350
Ghidra address:
PAL: 0x0059e598

Reimplemented from MemcardOp.

◆ InterpretResult()

virtual void CheckInfoOp::InterpretResult ( )
virtual

Report kMemcardStatusNotFormatted for sceMcResNoFormat, and kMemcardStatusOk for both zero and sceMcResChangedCard.

A changed card is therefore not an error here, and a positive result is.

Ghidra address:
NTSC-U/C: 0x0055e3d8
Ghidra address:
PAL: 0x0059f6a8

Reimplemented from MemcardOp.

Member Data Documentation

◆ mType

int CheckInfoOp::mType

One of sceMcTypeNoCard, sceMcTypePS1, sceMcTypePS2 or sceMcTypePDA.

+0x1c

◆ mFormatted

int CheckInfoOp::mFormatted

Non-zero once the card is formatted.

+0x20

◆ mFree

int CheckInfoOp::mFree

Free clusters on the card.

+0x24


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