OpenTTD Source
12.0-beta2
|
#include "stdafx.h"
#include "base_media_func.h"
#include "safeguards.h"
#include "random_access_file_type.h"
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, FioCheckFileExists(), RandomAccessFile::ReadBlock(), RandomAccessFile::ReadByte(), RandomAccessFile::ReadDword(), RandomAccessFile::SeekTo(), and RandomAccessFile::SkipBytes().
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, FioCheckFileExists(), RandomAccessFile::ReadBlock(), RandomAccessFile::ReadByte(), RandomAccessFile::ReadDword(), and RandomAccessFile::SeekTo().
|
static |
Names corresponding to the music set's files.