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

Deletion of one file or directory on a card. More...

#include <deletefileop.h>

Inheritance diagram for DeleteFileOp:
Collaboration diagram for DeleteFileOp:

Public Member Functions

 DeleteFileOp (MemcardCBHandler *pHandler, int nPortSlot, const HxStr &path, int nCookie)
 Construct a deletion.
virtual ~DeleteFileOp ()
virtual void Execute ()
virtual void NotifyDone ()
virtual void InterpretResult ()
 Map the result through a jump table.
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 file or directory to delete.
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

Deletion of one file or directory on a card.

Its RTTI descriptor is at 0x008efbe0. It has single inheritance from MemcardOp at offset 0. An instance is 0x24 bytes and the vtable is at 0x0082bc40.

Constructor & Destructor Documentation

◆ DeleteFileOp()

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

Construct a deletion.

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

◆ ~DeleteFileOp()

virtual DeleteFileOp::~DeleteFileOp ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055dff8
Ghidra address:
PAL: 0x0059f290

Member Function Documentation

◆ Execute()

virtual void DeleteFileOp::Execute ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055ef68
Ghidra address:
PAL: 0x005a0238

Reimplemented from MemcardOp.

◆ NotifyDone()

virtual void DeleteFileOp::NotifyDone ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055e060
Ghidra address:
PAL: 0x0059f308

Reimplemented from MemcardOp.

◆ InterpretResult()

virtual void DeleteFileOp::InterpretResult ( )
virtual

Map the result through a jump table.

The table at 0x0082c010 covers the seven libmc codes from sceMcResNotEmpty up to zero, indexed by the result plus six. A positive result falls outside the table and reports kMemcardStatusUnknown. This is the only operation that produces kMemcardStatusNoFile.

Ghidra address:
NTSC-U/C: 0x0055efb8
Ghidra address:
PAL: 0x005a0288

Reimplemented from MemcardOp.

Member Data Documentation

◆ mPath

HxStr DeleteFileOp::mPath

The file or directory to delete.

+0x1c


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