wavelength 1.0.0
Loading...
Searching...
No Matches
MemcardCBHandler Class Reference

Receiver of the result of one memory card command. More...

#include <memcardcbhandler.h>

Inheritance diagram for MemcardCBHandler:

Public Member Functions

virtual ~MemcardCBHandler ()
 Release the handler.
virtual void OnGetInfo (int nResult)
 Receive the result of MemcardGetInfo().
virtual void OnGetEntSpace (int nResult)
 Receive the free entries of a directory.
virtual void OnOpen (int nResult)
 Receive the result of MemcardOpen().
virtual void OnClose (int nResult)
 Receive the result of MemcardClose().
virtual void OnRead (int nResult)
 Receive the result of MemcardRead().
virtual void OnWrite (int nResult)
 Receive the result of MemcardWrite().
virtual void OnSeek (int nResult)
 Receive the result of MemcardSeek().
virtual void OnMkdir (int nResult)
 Receive the result of MemcardMkdir().
virtual void OnRename (int nResult)
 Receive the result of a rename.
virtual void OnDelete (int nResult)
 Receive the result of MemcardDelete().
virtual void OnFormat (int nResult)
 Receive the result of MemcardFormat().
virtual void OnUnformat (int nResult)
 Receive the result of MemcardUnformat().
virtual void OnGetDir (int nResult, MemcardDirEntry *pEntries)
 Receive the result of MemcardGetDir().

Detailed Description

Receiver of the result of one memory card command.

The RTTI includes the class name and records no base. The vptr is the only member. MemcardPoll() reports a finished command through the method for that command, to the handler the command was issued for. Every method does nothing here, and each MemcardTask overrides the one for the command it issues.

Constructor & Destructor Documentation

◆ ~MemcardCBHandler()

virtual MemcardCBHandler::~MemcardCBHandler ( )
inlinevirtual

Release the handler.

Ghidra address:
NTSC-U/C: 0x00351320
Ghidra address:
PAL: 0x003be598

Member Function Documentation

◆ OnGetInfo()

virtual void MemcardCBHandler::OnGetInfo ( int nResult)
inlinevirtual

Receive the result of MemcardGetInfo().

Parameters
nResultThe library's result.
Ghidra address:
NTSC-U/C: 0x00351350
Ghidra address:
PAL: 0x003be5c8

Reimplemented in MCGetInfoTask.

◆ OnGetEntSpace()

virtual void MemcardCBHandler::OnGetEntSpace ( int nResult)
inlinevirtual

Receive the free entries of a directory.

The game issues no such command.

Parameters
nResultThe library's result.
Ghidra address:
NTSC-U/C: 0x00351358
Ghidra address:
PAL: 0x003be5d0

◆ OnOpen()

virtual void MemcardCBHandler::OnOpen ( int nResult)
inlinevirtual

Receive the result of MemcardOpen().

Parameters
nResultThe file descriptor, or a negative library error.
Ghidra address:
NTSC-U/C: 0x00351360
Ghidra address:
PAL: 0x003be5d8

Reimplemented in MCOpenTask.

◆ OnClose()

virtual void MemcardCBHandler::OnClose ( int nResult)
inlinevirtual

Receive the result of MemcardClose().

Parameters
nResultThe library's result.
Ghidra address:
NTSC-U/C: 0x00351368
Ghidra address:
PAL: 0x003be5e0

Reimplemented in MCCloseTask.

◆ OnRead()

virtual void MemcardCBHandler::OnRead ( int nResult)
inlinevirtual

Receive the result of MemcardRead().

Parameters
nResultThe number of bytes read, or a negative library error.
Ghidra address:
NTSC-U/C: 0x00351370
Ghidra address:
PAL: 0x003be5e8

Reimplemented in MCReadTask.

◆ OnWrite()

virtual void MemcardCBHandler::OnWrite ( int nResult)
inlinevirtual

Receive the result of MemcardWrite().

Parameters
nResultThe number of bytes written, or a negative library error.
Ghidra address:
NTSC-U/C: 0x00351378
Ghidra address:
PAL: 0x003be5f0

Reimplemented in MCWriteTask.

◆ OnSeek()

virtual void MemcardCBHandler::OnSeek ( int nResult)
inlinevirtual

Receive the result of MemcardSeek().

Parameters
nResultThe new position, or a negative library error.
Ghidra address:
NTSC-U/C: 0x00351380
Ghidra address:
PAL: 0x003be5f8

Reimplemented in MCSeekTask.

◆ OnMkdir()

virtual void MemcardCBHandler::OnMkdir ( int nResult)
inlinevirtual

Receive the result of MemcardMkdir().

Parameters
nResultThe library's result.
Ghidra address:
NTSC-U/C: 0x00351388
Ghidra address:
PAL: 0x003be600

Reimplemented in MCMkDirTask.

◆ OnRename()

virtual void MemcardCBHandler::OnRename ( int nResult)
inlinevirtual

Receive the result of a rename.

The game issues no such command.

Parameters
nResultThe library's result.
Ghidra address:
NTSC-U/C: 0x00351390
Ghidra address:
PAL: 0x003be608

◆ OnDelete()

virtual void MemcardCBHandler::OnDelete ( int nResult)
inlinevirtual

Receive the result of MemcardDelete().

Parameters
nResultThe library's result.
Ghidra address:
NTSC-U/C: 0x00351398
Ghidra address:
PAL: 0x003be610

Reimplemented in MCDeleteTask.

◆ OnFormat()

virtual void MemcardCBHandler::OnFormat ( int nResult)
inlinevirtual

Receive the result of MemcardFormat().

Parameters
nResultThe library's result.
Ghidra address:
NTSC-U/C: 0x003513a0
Ghidra address:
PAL: 0x003be618

Reimplemented in MCFormatTask.

◆ OnUnformat()

virtual void MemcardCBHandler::OnUnformat ( int nResult)
inlinevirtual

Receive the result of MemcardUnformat().

Parameters
nResultThe library's result.
Ghidra address:
NTSC-U/C: 0x003513a8
Ghidra address:
PAL: 0x003be620

Reimplemented in MCUnformatTask.

◆ OnGetDir()

virtual void MemcardCBHandler::OnGetDir ( int nResult,
MemcardDirEntry * pEntries )
inlinevirtual

Receive the result of MemcardGetDir().

Parameters
nResultThe number of entries, or a negative library error.
pEntriesThe entries. The memory card layer retains them.
Ghidra address:
NTSC-U/C: 0x003513b0
Ghidra address:
PAL: 0x003be628

Reimplemented in MCGetDirTask.


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