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

Unformat of the card in one slot. More...

#include <unformatop.h>

Inheritance diagram for UnformatOp:
Collaboration diagram for UnformatOp:

Public Member Functions

 UnformatOp (MemcardCBHandler *pHandler, int nPortSlot, int nCookie)
 Construct an unformat against one slot.
virtual ~UnformatOp ()
virtual void Execute ()
virtual void NotifyDone ()
virtual void InterpretResult ()
 Report kMemcardStatusOk for zero and kMemcardStatusUnknown for every other result.
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.

Additional Inherited Members

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().
Protected Attributes inherited from MemcardOp
int mPortSlot
MemcardCBHandler * mHandler

Detailed Description

Unformat of the card in one slot.

Its RTTI descriptor is at 0x008efa60. It has single inheritance from MemcardOp at offset 0. An instance is 0x1c bytes, the size of the base alone, and the vtable is at 0x0082bdf0.

FormatCardMCT queues an unformat immediately before a format, which is how the game clears a card that reports itself as formatted but unusable.

Constructor & Destructor Documentation

◆ UnformatOp()

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

Construct an unformat 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: 0x0055e5a8
Ghidra address:
PAL: 0x0059f878

◆ ~UnformatOp()

virtual UnformatOp::~UnformatOp ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055d640
Ghidra address:
PAL: 0x0059e898

Member Function Documentation

◆ Execute()

virtual void UnformatOp::Execute ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055e5d0
Ghidra address:
PAL: 0x0059f8a0

Reimplemented from MemcardOp.

◆ NotifyDone()

virtual void UnformatOp::NotifyDone ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055d670
Ghidra address:
PAL: 0x0059e8c8

Reimplemented from MemcardOp.

◆ InterpretResult()

virtual void UnformatOp::InterpretResult ( )
virtual

Report kMemcardStatusOk for zero and kMemcardStatusUnknown for every other result.

Ghidra address:
NTSC-U/C: 0x0055e608
Ghidra address:
PAL: 0x0059f8d8

Reimplemented from MemcardOp.


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