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

Index file of one remix save directory, as parsed off a card. More...

#include <remixindex.h>

Public Member Functions

void ReadFromStream (IBStream &stream)
 Read the index back from a stream.
void WriteToStream (OBStream &stream)
 Write the index to a stream in the form ReadFromStream() reads.
void DumpElements ()
 Print every element to the debug console through RemixIndexElement::Dump().

Public Attributes

int version
std::vector< RemixIndexElement > elements

Detailed Description

Index file of one remix save directory, as parsed off a card.

RemixIndex::ReadFromStream at 0x001366e0 reads version as four bytes, reads the element count as four more, destroys whatever the vector already stored, and then reads that many elements. RemixIndex::DumpElements at 0x00139920 divides the vector's byte span by 104 for its count, which is what pins the element size independently of the destructor.

Neither the class name nor either member name is attested. The class name follows the dump label of its element, and the first member is recorded as a version because it is a single word that precedes the count in the file.

The implicit constructor survives out of line at 0x00183ed0, clearing the vector and leaving version unwritten, and the implicit destructor at 0x00360df8. The four remix tasks and MetRemixManager construct the record on the stack.

Member Function Documentation

◆ ReadFromStream()

void RemixIndex::ReadFromStream ( IBStream & stream)

Read the index back from a stream.

Reads version and the element count, empties elements, and then appends a fresh element for each and loads it through RemixIndexElement::Load().

Parameters
streamThe stream to read from.
Ghidra address:
NTSC-U/C: 0x001366e0
Ghidra address:
PAL: 0x00136fc0

◆ WriteToStream()

void RemixIndex::WriteToStream ( OBStream & stream)

Write the index to a stream in the form ReadFromStream() reads.

Writes version, the element count, and then each element through RemixIndexElement::Save().

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x00139858
Ghidra address:
PAL: 0x0013a188

◆ DumpElements()

void RemixIndex::DumpElements ( )

Print every element to the debug console through RemixIndexElement::Dump().

Ghidra address:
NTSC-U/C: 0x00139920
Ghidra address:
PAL: 0x0013a250

Member Data Documentation

◆ version

int RemixIndex::version

First word of the file. +0x00

◆ elements

std::vector<RemixIndexElement> RemixIndex::elements

+0x04


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