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

Close of an open memory-card file. More...

#include <closeop.h>

Inheritance diagram for CloseOp:
Collaboration diagram for CloseOp:

Public Member Functions

 CloseOp (MemcardCBHandler *pHandler, int nFile, int nCookie)
 Construct a close against an open descriptor.
virtual ~CloseOp ()
virtual void Execute ()
virtual void NotifyDone ()
virtual void InterpretResult ()
 Map sceMcResNoFormat to kMemcardStatusNotFormatted and sceMcResNoEntry to kMemcardStatusBadFile, and report kMemcardStatusOk for zero alone.
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 mFile
 The descriptor to close.
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

Close of an open memory-card file.

Its RTTI descriptor is at 0x008ee460. It has single inheritance from MemcardOp at offset 0. An instance is 0x20 bytes and the vtable is at 0x0082bc70.

The constructor never writes MemcardOp::mPortSlot, which makes this class and SeekOp the two operations that address a descriptor alone.

Constructor & Destructor Documentation

◆ CloseOp()

CloseOp::CloseOp ( MemcardCBHandler * pHandler,
int nFile,
int nCookie )

Construct a close against an open descriptor.

Parameters
pHandlerThe receiver NotifyDone() reports to.
nFileThe descriptor to close.
nCookieThe tag Memcard::Cancel() matches on.
Ghidra address:
NTSC-U/C: 0x0055ee28
Ghidra address:
PAL: 0x005a00f8

◆ ~CloseOp()

virtual CloseOp::~CloseOp ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055df00
Ghidra address:
PAL: 0x0059f198

Member Function Documentation

◆ Execute()

virtual void CloseOp::Execute ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055ee50
Ghidra address:
PAL: 0x005a0120

Reimplemented from MemcardOp.

◆ NotifyDone()

virtual void CloseOp::NotifyDone ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055df30
Ghidra address:
PAL: 0x0059f1c8

Reimplemented from MemcardOp.

◆ InterpretResult()

virtual void CloseOp::InterpretResult ( )
virtual

Map sceMcResNoFormat to kMemcardStatusNotFormatted and sceMcResNoEntry to kMemcardStatusBadFile, and report kMemcardStatusOk for zero alone.

Ghidra address:
NTSC-U/C: 0x0055ee80
Ghidra address:
PAL: 0x005a0150

Reimplemented from MemcardOp.

Member Data Documentation

◆ mFile

int CloseOp::mFile

The descriptor to close.

+0x1c


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