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

Enquire about one card slot and report what it holds. More...

#include <getconnectstatemct.h>

Inheritance diagram for GetConnectStateMCT:
Collaboration diagram for GetConnectStateMCT:

Public Member Functions

 GetConnectStateMCT (MemcardUser *pUser, Memcard *pCard, int nPortSlot, int nCookie)
 Construct an idle enquiry with an unknown state.
virtual ~GetConnectStateMCT ()
virtual void OnCheckInfo (CheckInfoOp *pOp)
 Fill mConnectState from the finished enquiry and report it.
virtual void Finish ()
virtual void Execute ()
Public Member Functions inherited from MemcardTask
 MemcardTask (MemcardUser *pUser, Memcard *pCard, int nPortSlot, int nCookie)
 Construct an idle task against one card slot.
 MemcardTask (MemcardUser *pUser, Memcard *pCard, int nCookie)
 Construct an idle task that does not address a single card slot.
virtual void UnusedHook ()
 Do nothing.
Public Member Functions inherited from MemcardCBHandler
virtual ~MemcardCBHandler ()
 Release the receiver.
virtual void OnEntSpace (EntSpaceOp *pOp)
 Report a finished free-entry enquiry.
virtual void OnFormat (FormatOp *pOp)
 Report a finished format.
virtual void OnUnformat (UnformatOp *pOp)
 Report a finished unformat.
virtual void OnCreateDir (CreateDirOp *pOp)
 Report a finished directory creation.
virtual void OnListDir (ListDirOp *pOp)
 Report a finished directory listing.
virtual void OnRead (ReadOp *pOp)
 Report a finished read.
virtual void OnWrite (WriteOp *pOp)
 Report a finished write.
virtual void OnOpenWrite (OpenWriteOp *pOp)
 Report a finished open for writing.
virtual void OnOpenRead (OpenReadOp *pOp)
 Report a finished open for reading.
virtual void OnClose (CloseOp *pOp)
 Report a finished close.
virtual void OnSeek (SeekOp *pOp)
 Report a finished seek.
virtual void OnDeleteFile (DeleteFileOp *pOp)
 Report a finished file deletion.
virtual void OnRenameFile (RenameFileOp *pOp)
 Report a finished rename.

Additional Inherited Members

Protected Member Functions inherited from MemcardTask
void HandleError ()
 Abandon the task when the last operation reported a failure.
Protected Attributes inherited from MemcardTask
MemcardUser * mUser
Memcard * mCard
int mCookie
int mPortSlot
int mState
int mStatus

Detailed Description

Enquire about one card slot and report what it holds.

Its RTTI descriptor is at 0x008ef6a0. It has single inheritance from MemcardTask at offset 0. An instance is 0x34 bytes and the vtable is at 0x007dad98.

The task is the thinnest of the family. It queues one CheckInfo, translates the result into mConnectState, and reports that record by value. The slot's display text comes from g_apszMemcardSlotNames, chosen by matching mPortSlot against g_anMemcardSlotPortSlot, and the search falls back on sceMtapGetConnection() to decide whether a port has a multi-tap.

Constructor & Destructor Documentation

◆ GetConnectStateMCT()

GetConnectStateMCT::GetConnectStateMCT ( MemcardUser * pUser,
Memcard * pCard,
int nPortSlot,
int nCookie )

Construct an idle enquiry with an unknown state.

The record starts with its port and slot, its free count and its type all -1 and its formatted flag zero, and its display text an empty string rather than a null one.

Parameters
pUserThe receiver Finish() reports to.
pCardThe queue the task submits operations to.
nPortSlotThe packed port and slot.
nCookieThe tag that abandons exactly this task's operations.
Ghidra address:
NTSC-U/C: 0x001848f8
Ghidra address:
PAL: 0x00189e00

◆ ~GetConnectStateMCT()

virtual GetConnectStateMCT::~GetConnectStateMCT ( )
virtual
Ghidra address:
NTSC-U/C: 0x001849c8
Ghidra address:
PAL: 0x00189ed0

Member Function Documentation

◆ OnCheckInfo()

virtual void GetConnectStateMCT::OnCheckInfo ( CheckInfoOp * pOp)
virtual

Fill mConnectState from the finished enquiry and report it.

The formatted flag is recorded as the result of comparing the operation's own flag against exactly 1, so any other non-zero value arrives as zero.

Ghidra address:
NTSC-U/C: 0x00177fb0
Ghidra address:
PAL: 0x0017b370

Reimplemented from MemcardCBHandler.

◆ Finish()

virtual void GetConnectStateMCT::Finish ( )
virtual
Ghidra address:
NTSC-U/C: 0x00185ff0
Ghidra address:
PAL: 0x0018baa8

Implements MemcardTask.

◆ Execute()

virtual void GetConnectStateMCT::Execute ( )
virtual
Ghidra address:
NTSC-U/C: 0x00186070
Ghidra address:
PAL: 0x0018bb28

Implements MemcardTask.


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