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

Save the global settings to a card. More...

#include <saveglobalsettingsmct.h>

Inheritance diagram for SaveGlobalSettingsMCT:
Collaboration diagram for SaveGlobalSettingsMCT:

Public Member Functions

 SaveGlobalSettingsMCT (MemcardUser *pUser, Memcard *pCard, int nPortSlot, int nCookie, GlobalSettings *pSettings)
 Construct an idle save and serialise the settings through GlobalSettings::Save().
virtual ~SaveGlobalSettingsMCT ()
virtual void OnCheckInfo (CheckInfoOp *pOp)
 Start the save sequence once the card enquiry succeeds.
virtual void Finish ()
 Report the result through MemcardUser::OnGlobalSettingsSaved().
virtual void Execute ()
 Aim the save at the settings directory and file, and enquire about the card.
Public Member Functions inherited from SaveFileMCT
 SaveFileMCT (MemcardUser *pUser, Memcard *pCard, int nPortSlot, int nCookie)
 Construct an idle save task.
virtual ~SaveFileMCT ()
void Save (const HxStr &dirName, const HxStr &fileName, const HxStr &iconTitle, const void *pData, int nLength, int bSkipIconFiles)
 Record what to write and start the sequence.
void RunStep ()
 Run the step mStep selects and advance to the step after it.
void BuildIconSys (const char *pszTitle)
 Fill mIconSys with the browser icon header.
virtual void OnCreateDir (CreateDirOp *pOp)
virtual void OnWrite (WriteOp *pOp)
virtual void OnOpenWrite (OpenWriteOp *pOp)
virtual void OnClose (CloseOp *pOp)
Public Member Functions inherited from MemcardTask
 MemcardTask (MemcardUser *pUser, Memcard *pCard, int nPortSlot, int nCookie)
 Construct an idle task against one card slot.
 MemcardTask (MemcardUser *pUser, Memcard *pCard, int nCookie)
 Construct an idle task that does not address a single card slot.
virtual void UnusedHook ()
 Do nothing.
Public Member Functions inherited from MemcardCBHandler
virtual ~MemcardCBHandler ()
 Release the receiver.
virtual void OnEntSpace (EntSpaceOp *pOp)
 Report a finished free-entry enquiry.
virtual void OnFormat (FormatOp *pOp)
 Report a finished format.
virtual void OnUnformat (UnformatOp *pOp)
 Report a finished unformat.
virtual void OnListDir (ListDirOp *pOp)
 Report a finished directory listing.
virtual void OnRead (ReadOp *pOp)
 Report a finished read.
virtual void OnOpenRead (OpenReadOp *pOp)
 Report a finished open for reading.
virtual void OnSeek (SeekOp *pOp)
 Report a finished seek.
virtual void OnDeleteFile (DeleteFileOp *pOp)
 Report a finished file deletion.
virtual void OnRenameFile (RenameFileOp *pOp)
 Report a finished rename.

Additional Inherited Members

Protected Member Functions inherited from MemcardTask
void HandleError ()
 Abandon the task when the last operation reported a failure.
Protected Attributes inherited from SaveFileMCT
int mFile
sceMcIconSys mIconSys
HxStr mDirName
HxStr mFileName
HxStr mIconTitle
int mStep
const void * mData
int mDataLength
int mSkipIconFiles
Protected Attributes inherited from MemcardTask
MemcardUser * mUser
Memcard * mCard
int mCookie
int mPortSlot
int mState
int mStatus

Detailed Description

Save the global settings to a card.

It has single inheritance from SaveFileMCT at offset 0. An instance is 0x42c bytes, from MemcardManager::CreateSaveGlobalSettingsTask()'s allocation, and the vtable is at 0x007daa78.

The constructor serialises the settings into g_abRemixStagingBuffer through mStream at once. Execute() then points the inherited save sequence at that buffer and starts it with a card enquiry.

Constructor & Destructor Documentation

◆ SaveGlobalSettingsMCT()

SaveGlobalSettingsMCT::SaveGlobalSettingsMCT ( MemcardUser * pUser,
Memcard * pCard,
int nPortSlot,
int nCookie,
GlobalSettings * pSettings )

Construct an idle save and serialise the settings through GlobalSettings::Save().

Parameters
pUserThe receiver Finish() reports to.
pCardThe queue the task submits operations to.
nPortSlotThe packed port and slot.
nCookieThe tag that abandons exactly this task's operations.
pSettingsThe settings to save.
Ghidra address:
NTSC-U/C: 0x00178ab0
Ghidra address:
PAL: 0x0017c348

◆ ~SaveGlobalSettingsMCT()

virtual SaveGlobalSettingsMCT::~SaveGlobalSettingsMCT ( )
virtual
Ghidra address:
NTSC-U/C: 0x00184e40
Ghidra address:
PAL: 0x0018a468

Member Function Documentation

◆ OnCheckInfo()

virtual void SaveGlobalSettingsMCT::OnCheckInfo ( CheckInfoOp * pOp)
virtual

Start the save sequence once the card enquiry succeeds.

The body is instruction for instruction SavePersonasMCT::OnCheckInfo(). The European release inherits SaveFileMCT::OnCheckInfo() instead.

Parameters
pOpThe finished enquiry.
Ghidra address:
NTSC-U/C: 0x00186578

Reimplemented from MemcardCBHandler.

◆ Finish()

virtual void SaveGlobalSettingsMCT::Finish ( )
virtual

Report the result through MemcardUser::OnGlobalSettingsSaved().

Ghidra address:
NTSC-U/C: 0x00186610
Ghidra address:
PAL: 0x0018bfa0

Reimplemented from SaveFileMCT.

◆ Execute()

virtual void SaveGlobalSettingsMCT::Execute ( )
virtual

Aim the save at the settings directory and file, and enquire about the card.

The European release adds the settings to SaveFileMCT::mFiles and runs SaveFileMCT::Execute().

Ghidra address:
NTSC-U/C: 0x00178c08
Ghidra address:
PAL: 0x0017c590

Reimplemented from SaveFileMCT.


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