|
OpenTTD Source
1.11.0-beta2
|
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... | |
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.
| 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 55 of file music.cpp.
References BASESET_DIR, CONFIG_SLOT, FioCheckFileExists(), FioOpenFile(), FioReadBlock(), FioReadByte(), FioReadDword(), FioSeekTo(), and FioSkipBytes().
| 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 28 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.