resonance 1.0.1
Loading...
Searching...
No Matches
MetRemixRecord Struct Reference

One remix in the catalogue, with the appearances of the players who recorded it. More...

#include <metremixrecord.h>

Collaboration diagram for MetRemixRecord:

Public Member Functions

 MetRemixRecord ()
 MetRemixRecord (HxStr levelNameIn, HxStr nameIn, HxStr fileNameIn, HxStr dateTimeIn, char cGameOk, std::vector< FreqAppearance > appearancesIn, int nAlbumNumber)
 Build a record from its parts, taken by value.

Public Attributes

HxStr levelName
 The level the remix was recorded on.
HxStr name
 The remix name, which JukeboxPlayList::AddEntry() copies into a playlist entry and MetSaveRemix::OnRemixesListed() compares against the name being saved.
HxStr fileName
 The memory card file MetRemixManager loads the remix from.
HxStr dateTime
 The date and time the remix was saved, shown in the jukebox date text.
char gameOk
 The GameOK byte of the remix index entry.
int factory
 Non-zero for a factory remix.
std::vector< FreqAppearance > appearances
 Appearances of the players who recorded the remix.
int albumNumber
 The album the remix belongs to, compared against GetAlbumJukeboxValue().

Detailed Description

One remix in the catalogue, with the appearances of the players who recorded it.

The record is 0x38 bytes and is not polymorphic, so it emits no RTTI descriptor and no vtable. Every instance is a by-value member or a vector element, so the allocation tag lever declines as well: the one allocation that reaches it is the vector buffer, tagged stl_vector at 0x007ccfe8, which is the container rather than the element. The name here is inferred from its users, and every one of them is remix-related. MetRemixManager stores one at +0x114, MetSaveRemix a vector of them at +0xcc, and MetJukeboxCustomRemixesScreen and MetJukeboxFactoryRemixesScreen each divide that vector's byte span by 0x38 to obtain their row count.

The layout comes from two sources that agree. The inline constructor in MetRemixManager builds the four strings from the empty literal at 0x008077d8, writes one byte of 1 at +0x20, zeroes +0x24, default-constructs the vector at +0x28, and zeroes +0x34. The destructor at 0x00183fd0 walks the vector at +0x28 in 0x14-byte steps running the FreqAppearance destructor on each, deallocates the buffer, and then frees the four string buffers at +0x1c, +0x14, +0x0c, and +0x04, which is reverse declaration order.

That destructor is the compiler-generated one, because it releases exactly the five members that need releasing and nothing else, so it is recorded here rather than declared. The constructor is not compiler-generated, because an implicit one would not write 1 into the byte at +0x20.

The byte at +0x20 is a char, not a bool. ListRemixesMCT::OnFileLoaded() loads the GameOK byte with lb at 0x0017ef30 and stores it unchanged with sb at 0x0017ef78, with no normalisation to 0 or 1 in between. The member names follow the RemixIndex element fields that ListRemixesMCT::OnFileLoaded() copies into them.

Constructor & Destructor Documentation

◆ MetRemixRecord() [1/2]

MetRemixRecord::MetRemixRecord ( )
inline

◆ MetRemixRecord() [2/2]

MetRemixRecord::MetRemixRecord ( HxStr levelNameIn,
HxStr nameIn,
HxStr fileNameIn,
HxStr dateTimeIn,
char cGameOk,
std::vector< FreqAppearance > appearancesIn,
int nAlbumNumber )
inline

Build a record from its parts, taken by value.

ListRemixesMCT::OnFileLoaded() at 0x0017ece0 is the only site, and no out-of-line copy exists. factory starts at zero.

Parameters
levelNameInCopied into levelName.
nameInCopied into name.
fileNameInCopied into fileName.
dateTimeInCopied into dateTime.
cGameOkStored in gameOk.
appearancesInCopied into appearances.
nAlbumNumberStored in albumNumber.

Member Data Documentation

◆ levelName

HxStr MetRemixRecord::levelName

The level the remix was recorded on.

It keys the song's logo, picture, and configuration texts and becomes the level name when the remix plays. +0x00

◆ name

HxStr MetRemixRecord::name

The remix name, which JukeboxPlayList::AddEntry() copies into a playlist entry and MetSaveRemix::OnRemixesListed() compares against the name being saved.

+0x08

◆ fileName

HxStr MetRemixRecord::fileName

The memory card file MetRemixManager loads the remix from.

+0x10

◆ dateTime

HxStr MetRemixRecord::dateTime

The date and time the remix was saved, shown in the jukebox date text.

+0x18

◆ gameOk

char MetRemixRecord::gameOk

The GameOK byte of the remix index entry.

Starts as 1. +0x20

◆ factory

int MetRemixRecord::factory

Non-zero for a factory remix.

JukeboxPlayList::AddEntry() copies it. +0x24

◆ appearances

std::vector<FreqAppearance> MetRemixRecord::appearances

Appearances of the players who recorded the remix.

+0x28

◆ albumNumber

int MetRemixRecord::albumNumber

The album the remix belongs to, compared against GetAlbumJukeboxValue().

+0x34


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