|
OpenTTD
|
The songs that OpenTTD knows. More...
Go to the source code of this file.
Macros | |
| #define | SET_TYPE "music" |
| The type of set we're replacing. | |
Functions | |
| char * | GetMusicCatEntryName (const char *filename, size_t entrynum) |
| Read the name of a music CAT file entry. More... | |
| byte * | GetMusicCatEntryData (const char *filename, size_t entrynum, size_t &entrylen) |
| Read the full data of a music CAT file entry. More... | |
| assert_compile (lengthof(_music_file_names)==NUM_SONGS_AVAILABLE) | |
| Make sure we aren't messing things up. More... | |
Variables | |
| static const char *const | _music_file_names [] |
| Names corresponding to the music set's files. More... | |
The songs that OpenTTD knows.
Definition in file music.cpp.
| assert_compile | ( | lengthof(_music_file_names) | = =NUM_SONGS_AVAILABLE | ) |
Make sure we aren't messing things up.
| byte* GetMusicCatEntryData | ( | const char * | filename, |
| size_t | entrynum, | ||
| size_t & | entrylen | ||
| ) |
Read the full data of a music CAT file entry.
| filename | Name of CAT file to read from. | |
| entrynum | Index of entry to read | |
| [out] | entrylen | Receives length of data read |
Definition at line 57 of file music.cpp.
References BASESET_DIR, CONFIG_SLOT, FioCheckFileExists(), FioOpenFile(), FioReadBlock(), FioReadByte(), FioReadDword(), FioSeekTo(), FioSkipBytes(), and INSTANTIATE_BASE_MEDIA_METHODS.
| char* GetMusicCatEntryName | ( | const char * | filename, |
| size_t | entrynum | ||
| ) |
Read the name of a music CAT file entry.
| filename | Name of CAT file to read from |
| entrynum | Index of entry whose name to read |
Definition at line 30 of file music.cpp.
References BASESET_DIR, CONFIG_SLOT, FioCheckFileExists(), FioOpenFile(), FioReadBlock(), FioReadByte(), FioReadDword(), and FioSeekTo().
|
static |
Names corresponding to the music set's files.