Work that checks a card at startup: read the card information, then list the Freq directory and its Freq files, and measure the space one more Freq needs.
More...
#include <mcinitialchecktask.h>
|
| | ~MCInitialCheckTask () override=default |
| | Destroy the object.
|
| | MCInitialCheckTask () |
| | Construct the steps.
|
| void | Set (int nPort) |
| | Prepare the work, and make g_MemcardPath the Freq directory.
|
| void | OnDirListed () override |
| | Add the space a missing directory or a missing Freq needs, and compare the total with the free space once both listings ended.
|
| MCGetInfoTask * | GetGetInfo () const |
| int | GetNeeded () const |
| | ~MemcardSerialTask () override=default |
| | Destroy the object.
|
| int | GetResult () |
| | Report the outcome of the work.
|
| 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 checks a card at startup: read the card information, then list the Freq directory and its Freq files, and measure the space one more Freq needs.
The RTTI records the class as deriving from MemcardSerialTask. The object is 0x34 bytes. Another card than before counts as success. The result is MemcardTask::kStatusFull when the card lacks the space.
◆ ~MCInitialCheckTask()
| MCInitialCheckTask::~MCInitialCheckTask |
( |
| ) |
|
|
overridedefault |
Destroy the object.
- Ghidra address:
- NTSC-U/C: 0x00352350
- Ghidra address:
- PAL: 0x003bf5d0
◆ MCInitialCheckTask()
| MCInitialCheckTask::MCInitialCheckTask |
( |
| ) |
|
Construct the steps.
- Ghidra address:
- NTSC-U/C: 0x0015e688
- Ghidra address:
- PAL: 0x0015fec8
◆ Set()
| void MCInitialCheckTask::Set |
( |
int | nPort | ) |
|
Prepare the work, and make g_MemcardPath the Freq directory.
- Parameters
-
| nPort | The memory card slot. |
- Ghidra address:
- NTSC-U/C: 0x0015e7b8
- Ghidra address:
- PAL: 0x0015fff8
◆ OnDirListed()
| void MCInitialCheckTask::OnDirListed |
( |
| ) |
|
|
overridevirtual |
Add the space a missing directory or a missing Freq needs, and compare the total with the free space once both listings ended.
- Ghidra address:
- NTSC-U/C: 0x0015e8c8
- Ghidra address:
- PAL: 0x00160108
Reimplemented from MemcardSerialTask.
◆ GetGetInfo()
- Returns
- The step that reads the card information.
◆ GetNeeded()
| int MCInitialCheckTask::GetNeeded |
( |
| ) |
const |
|
inline |
- Returns
- The kilobytes one more Freq needs.
The documentation for this class was generated from the following file: