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

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

#include <renamefileop.h>

Inheritance diagram for RenameFileOp:
Collaboration diagram for RenameFileOp:

Public Member Functions

 RenameFileOp (MemcardCBHandler *pHandler, int nPortSlot, const HxStr &oldPath, const HxStr &newPath, int nCookie)
 Construct a rename.
virtual ~RenameFileOp ()
virtual void Execute ()
virtual void NotifyDone ()
virtual void InterpretResult ()
 Map sceMcResNoFormat to kMemcardStatusNotFormatted, sceMcResFullDevice to kMemcardStatusCardFull, and sceMcResNoEntry to kMemcardStatusNoEntry.
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 mOldPath
 The existing name.
HxStr mNewPath
 The replacement name.
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

Rename of one file or directory on a card.

Its RTTI descriptor is at 0x008f4990. It has single inheritance from MemcardOp at offset 0. An instance is 0x2c bytes and the vtable is at 0x0082bc10.

Memcard::RenameFile() has no caller in the image. Nothing exercises the class.

Constructor & Destructor Documentation

◆ RenameFileOp()

RenameFileOp::RenameFileOp ( MemcardCBHandler * pHandler,
int nPortSlot,
const HxStr & oldPath,
const HxStr & newPath,
int nCookie )

Construct a rename.

Parameters
pHandlerThe receiver NotifyDone() reports to.
nPortSlotThe packed port and slot.
oldPathThe existing name.
newPathThe replacement name.
nCookieThe tag Memcard::Cancel() matches on.
Ghidra address:
NTSC-U/C: 0x0055f030
Ghidra address:
PAL: 0x005a0300

◆ ~RenameFileOp()

virtual RenameFileOp::~RenameFileOp ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055e128
Ghidra address:
PAL: 0x0059f3d0

Member Function Documentation

◆ Execute()

virtual void RenameFileOp::Execute ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055f108
Ghidra address:
PAL: 0x005a03e8

Reimplemented from MemcardOp.

◆ NotifyDone()

virtual void RenameFileOp::NotifyDone ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055e1a0
Ghidra address:
PAL: 0x0059f470

Reimplemented from MemcardOp.

◆ InterpretResult()

virtual void RenameFileOp::InterpretResult ( )
virtual

Map sceMcResNoFormat to kMemcardStatusNotFormatted, sceMcResFullDevice to kMemcardStatusCardFull, and sceMcResNoEntry to kMemcardStatusNoEntry.

Ghidra address:
NTSC-U/C: 0x0055f168
Ghidra address:
PAL: 0x005a0448

Reimplemented from MemcardOp.

Member Data Documentation

◆ mOldPath

HxStr RenameFileOp::mOldPath

The existing name.

+0x1c

◆ mNewPath

HxStr RenameFileOp::mNewPath

The replacement name.

+0x24


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