Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __OOTMUSIC_H__
- #define __OOTMUSIC_H__
- //Defines
- typedef unsigned int uint;
- typedef unsigned char uint8_t;
- typedef unsigned short uint16_t;
- typedef unsigned char bool;
- /********
- Sound vector
- ********/
- typedef struct sound {
- char* file;
- uint16_t temp_addr;
- int offset;
- int size;
- uint8_t* data;
- } sound;
- typedef struct sound_Vector {
- sound* data;
- int len;
- int size;
- } sound_Vector;
- /********
- Sequence
- ********/
- typedef struct Sequence {
- char* name; //Might not need
- uint8_t* seq_file;
- int seq_file_length;
- char* cosmetic_name; //Might not need
- int replaces;
- int vanilla_id;
- int type; //Might not need
- int instrument_set;
- bool new_instrument_set;
- sound_Vector zsounds;
- uint8_t* zbank_file;
- int zbank_file_length;
- char* bankmeta; //Might not need
- } Sequence;
- //Functions
- int randomize_music(uint8_t* rom_original, uint8_t* rom_modified, Sequence* sequences, int sequences_length, int* disabled_target_sequences, int disabled_target_sequences_length, char custom_sequences);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement