Background Music - LordNed/WindEditor GitHub Wiki

Background music is assigned to maps using entries and pointers within the executable, Start.dol. The entries themselves begin at 0x399310, while the pointers to the map names are stored at 0x3995B8.

###Entries


//0x04/4 bytes long
/*0x00*/ short songNum;
/*0x02*/ byte mapPointerNum;
/*0x03*/ byte extraSampleBankIndex; //Loads a sample bank in addition to the default ones for the map

###Pointers


The pointers are off by 0x80003000 from the offset of the map names within the file. Subtracting that amount from the pointer will give you the correct offset.

int mapNameOffset = mapPointer - 2147495936;