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

Asynchronous reader of one pre-fab persona file. More...

#include <metfreqloader.h>

Inheritance diagram for MetFreqLoader:
Collaboration diagram for MetFreqLoader:

Public Member Functions

 MetFreqLoader (const HxStr &path, std::vector< MetPersonaData * > *pIdentities)
 Record the file to read and the list to fill.
virtual ~MetFreqLoader ()
 Release the path.
virtual void Done (int nHandle, int nFile, void *pBuffer, int nLength, int nStatus)
 Parse the completed read into personas and release the buffer.
bool PollAssets ()
 Report whether the FreQ maker assets are resident.
void Start ()
 Wait for the FreQ maker assets and queue the read of the persona file.
int IsLoaded ()
 Pump the asynchronous layer and report whether Done() has run.
Public Member Functions inherited from AsyncCallback
virtual ~AsyncCallback ()
 Release the receiver.

Detailed Description

Asynchronous reader of one pre-fab persona file.

Its RTTI descriptor is at 0x008f2a90. It derives publicly from AsyncCallback at offset 0. The vtable is at 0x007f7d78. The two allocations in MetFreqMakerAssetManager's constructor fix the object at 0x1c bytes. The embedded source file name MetFreqLoader.cpp is billed with the buffer release in Done().

Start() queues a read of the file, Done() parses every persona in the completed buffer into the list the loader was given, and IsLoaded() pumps the asynchronous layer and reports completion.

The translation unit spans 0x002a0e30 to 0x002a3820. Besides the members below, it has template library emissions at 0x002a1090, 0x002a1268, 0x002a1638 through 0x002a2a48, 0x002a2fc0 through 0x002a3190, 0x002a3638, 0x002a3700, and 0x002a37a0.

Constructor & Destructor Documentation

◆ MetFreqLoader()

MetFreqLoader::MetFreqLoader ( const HxStr & path,
std::vector< MetPersonaData * > * pIdentities )

Record the file to read and the list to fill.

Parameters
pathThe persona file.
pIdentitiesThe list Done() appends the personas to.
Ghidra address:
NTSC-U/C: 0x002a3498
Ghidra address:
PAL: 0x002c1288

◆ ~MetFreqLoader()

virtual MetFreqLoader::~MetFreqLoader ( )
virtual

Release the path.

Vtable slot 1.

Ghidra address:
NTSC-U/C: 0x002a3430
Ghidra address:
PAL: 0x002c1210

Member Function Documentation

◆ Done()

virtual void MetFreqLoader::Done ( int nHandle,
int nFile,
void * pBuffer,
int nLength,
int nStatus )
virtual

Parse the completed read into personas and release the buffer.

Vtable slot 2. A negative status changes nothing. Otherwise the buffer is parsed, released under the tag MetFreqLoader.cpp, the request handle is cleared, and the loader is marked loaded.

Parameters
nHandleThe request identifier.
nFileThe file the read was issued against.
pBufferThe buffer the read filled.
nLengthThe bytes read.
nStatusThe completion status.
Ghidra address:
NTSC-U/C: 0x002a35d8
Ghidra address:
PAL: 0x002c13c8

Implements AsyncCallback.

◆ PollAssets()

bool MetFreqLoader::PollAssets ( )

Report whether the FreQ maker assets are resident.

The body does not read this object. It runs MetFreqMakerAssetManager::PollLoad(). The title is inferred.

Returns
True once the assets are resident.
Ghidra address:
NTSC-U/C: 0x002a3500
Ghidra address:
PAL: 0x002c12f0

◆ Start()

void MetFreqLoader::Start ( )

Wait for the FreQ maker assets and queue the read of the persona file.

The read is issued with no zone selected, and the previously selected zone is restored after. The title is inferred.

Ghidra address:
NTSC-U/C: 0x002a3528
Ghidra address:
PAL: 0x002c1318

◆ IsLoaded()

int MetFreqLoader::IsLoaded ( )

Pump the asynchronous layer and report whether Done() has run.

The title is inferred.

Returns
Non-zero once the personas are parsed.
Ghidra address:
NTSC-U/C: 0x002a35a8
Ghidra address:
PAL: 0x002c1398

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