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

Creation of one directory on a card. More...

#include <createdirop.h>

Inheritance diagram for CreateDirOp:
Collaboration diagram for CreateDirOp:

Public Member Functions

 CreateDirOp (MemcardCBHandler *pHandler, int nPortSlot, const HxStr &path, int nCookie)
 Construct a directory creation.
virtual ~CreateDirOp ()
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 mPath
 The directory to create.
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

Creation of one directory on a card.

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

Constructor & Destructor Documentation

◆ CreateDirOp()

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

Construct a directory creation.

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

◆ ~CreateDirOp()

virtual CreateDirOp::~CreateDirOp ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055d738
Ghidra address:
PAL: 0x0059e990

Member Function Documentation

◆ Execute()

virtual void CreateDirOp::Execute ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055e6b8
Ghidra address:
PAL: 0x0059f988

Reimplemented from MemcardOp.

◆ NotifyDone()

virtual void CreateDirOp::NotifyDone ( )
virtual
Ghidra address:
NTSC-U/C: 0x0055d7a0
Ghidra address:
PAL: 0x0059ea08

Reimplemented from MemcardOp.

◆ InterpretResult()

virtual void CreateDirOp::InterpretResult ( )
virtual

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

SaveFileMCT proceeds to the open after kMemcardStatusNoEntry as well as after kMemcardStatusOk, and abandons the save only on any other value.

Ghidra address:
NTSC-U/C: 0x0055e708
Ghidra address:
PAL: 0x0059f9d8

Reimplemented from MemcardOp.

Member Data Documentation

◆ mPath

HxStr CreateDirOp::mPath

The directory to create.

+0x1c


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