Work that saves the GameOptions to the settings file of the Freq directory.
More...
#include <mcsavesettingstask.h>
|
| | ~MCSaveSettingsTask () override=default |
| | Destroy the object.
|
| | MCSaveSettingsTask () |
| | Construct the steps.
|
| void | Set (int nPort, GameOptions *pSettings, int nOverwrite) |
| | Prepare the work, and serialise the settings into g_pMemcardBuffer.
|
| int | GetNeeded () |
| | Report the space a save that did not fit needed.
|
| void | OnSaveSpace (int nNeeded) override |
| | Prepare the directory and the file steps when the save fits, and otherwise fail the measurement.
|
| | ~MemcardSerialTask () override=default |
| | Destroy the object.
|
| int | GetResult () |
| | Report the outcome of the work.
|
| virtual void | OnDirListed () |
| | Learn that a directory listing step ended.
|
| virtual void | OnCardInfo () |
| | Learn that a card information step ended.
|
| virtual void | OnFileLoaded () |
| | Learn that a file load step ended.
|
| | ~SerialTasks () override |
| | Release the list and every task in it.
|
| void | Add (Task *pTask) |
| | Append a task, which the list then manages.
|
| | Task () |
| | Construct an idle task.
|
| virtual | ~Task () |
| | Release the task.
|
| int | Poll () |
| | Report the state after giving a running task one poll.
|
| void | Start () |
| | Enter the running state and call OnStart(), unless the task is already running.
|
| void | Stop () |
| | Call OnStop() when the task is running, and return to the idle state.
|
| void | Finish (bool bSucceeded) |
| | End the task from outside its poll, and call OnStop() when it was running.
|
| int | GetState () const |
| | Report mState.
|
Work that saves the GameOptions to the settings file of the Freq directory.
The RTTI records the class as deriving from MemcardSerialTask and from SaveSpaceUser at +0x20. The object is 0x50 bytes. The steps measure the space, create the directory, and save the file. A save that does not fit fails after the measurement, and GetNeeded() then reports the space it needed.
◆ ~MCSaveSettingsTask()
| MCSaveSettingsTask::~MCSaveSettingsTask |
( |
| ) |
|
|
overridedefault |
Destroy the object.
- Ghidra address:
- NTSC-U/C: 0x003537f8
- Ghidra address:
- PAL: 0x003c0b00
◆ MCSaveSettingsTask()
| MCSaveSettingsTask::MCSaveSettingsTask |
( |
| ) |
|
Construct the steps.
- Ghidra address:
- NTSC-U/C: 0x00162000
- Ghidra address:
- PAL: 0x00164d10
◆ Set()
| void MCSaveSettingsTask::Set |
( |
int | nPort, |
|
|
GameOptions * | pSettings, |
|
|
int | nOverwrite ) |
Prepare the work, and serialise the settings into g_pMemcardBuffer.
- Parameters
-
| nPort | The memory card slot. |
| pSettings | The settings. |
| nOverwrite | Non-zero when saved settings may be replaced. |
- Ghidra address:
- NTSC-U/C: 0x001620c0
- Ghidra address:
- PAL: 0x00164dd0
◆ GetNeeded()
| int MCSaveSettingsTask::GetNeeded |
( |
| ) |
|
Report the space a save that did not fit needed.
- Returns
- The kilobytes, or zero.
- Ghidra address:
- NTSC-U/C: 0x00162188
- Ghidra address:
- PAL: 0x00164e98
◆ OnSaveSpace()
| void MCSaveSettingsTask::OnSaveSpace |
( |
int | nNeeded | ) |
|
|
overridevirtual |
Prepare the directory and the file steps when the save fits, and otherwise fail the measurement.
- Parameters
-
| nNeeded | The kilobytes the save needs. |
- Ghidra address:
- NTSC-U/C: 0x00162190
- Ghidra address:
- PAL: 0x00164ea0
Implements SaveSpaceUser.
The documentation for this class was generated from the following file: