mirror of https://github.com/OpenRCT2/OpenRCT2.git
Refactored music file list, removed some extra unused code, clear up some comments
This commit is contained in:
parent
fcb74d13b2
commit
6a23e28670
|
@ -1700,8 +1700,8 @@ void audio_init1()
|
|||
}
|
||||
}
|
||||
audio_init2(devicenum);
|
||||
int m = 0;
|
||||
do {
|
||||
|
||||
for(int m = 0; m < countof(ride_music_info_list); m++) {
|
||||
rct_ride_music_info* ride_music_info = ride_music_info_list[m];
|
||||
const char* path = get_file_path(ride_music_info->pathid);
|
||||
FILE *file = fopen(path, "rb");
|
||||
|
@ -1713,9 +1713,7 @@ void audio_init1()
|
|||
ride_music_info->length = 0;
|
||||
}
|
||||
}
|
||||
m++;
|
||||
// 46 is the number of files in ride_music_info_list
|
||||
} while(m + 1 < 46);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -147,7 +147,7 @@ typedef struct {
|
|||
uint8 var_9;
|
||||
} rct_ride_music_info;
|
||||
|
||||
extern rct_ride_music_info* ride_music_info_list[];
|
||||
extern rct_ride_music_info* ride_music_info_list[46];
|
||||
extern rct_vehicle_sound gVehicleSoundList[AUDIO_MAX_VEHICLE_SOUNDS];
|
||||
extern rct_vehicle_sound_params gVehicleSoundParamsList[AUDIO_MAX_VEHICLE_SOUNDS];
|
||||
extern rct_vehicle_sound_params *gVehicleSoundParamsListEnd;
|
||||
|
|
|
@ -299,7 +299,7 @@ int check_file_path(int pathId)
|
|||
// A data file is missing from the installation directory. The original implementation
|
||||
// asks for a CD-ROM path at this point and stores it in cdrom_path @ 0x9AA318.
|
||||
// The file_on_cdrom[pathId] @ 0x009AA0B flag is set to 1 as well.
|
||||
// For PATH_ID_SIXFLAGS_MAGICMOUNTAIN and PATH_ID_SIXFLAGS_BUILDYOUROWN,
|
||||
// For PATH_ID_SIXFLAGS_MAGICMOUNTAIN (and the now removed PATH_ID_SIXFLAGS_BUILDYOUROWN),
|
||||
// the original implementation always assumes they are stored on CD-ROM.
|
||||
// This has been removed for now for the sake of simplicity and could be added
|
||||
// later in a more convenient way using the INI file.
|
||||
|
|
|
@ -191,10 +191,8 @@ enum {
|
|||
PATH_ID_CUSTOM2,
|
||||
PATH_ID_CSS39,
|
||||
PATH_ID_CSS40,
|
||||
PATH_ID_TRACKSIDX,
|
||||
PATH_ID_CSS41,
|
||||
PATH_ID_SIXFLAGS_MAGICMOUNTAIN,
|
||||
PATH_ID_SIXFLAGS_BUILDYOUROWN,
|
||||
PATH_ID_CSS42,
|
||||
PATH_ID_CSS43,
|
||||
PATH_ID_CSS44,
|
||||
|
@ -249,10 +247,8 @@ static const char * const file_paths[] =
|
|||
"Data\\CUSTOM2.WAV",
|
||||
"Data\\CSS39.DAT",
|
||||
"Data\\CSS40.DAT",
|
||||
"Tracks\\Tracks.IDX",
|
||||
"Data\\CSS41.DAT",
|
||||
"Scenarios\\Six Flags Magic Mountain.SC6",
|
||||
"Scenarios\\Build your own Six Flags Park.SC6",
|
||||
"Data\\CSS42.DAT",
|
||||
"Data\\CSS43.DAT",
|
||||
"Data\\CSS44.DAT",
|
||||
|
|
|
@ -2509,7 +2509,7 @@ uint8 *ride_music_style_tuneids[] = {
|
|||
MAKE_TUNEID_LIST(18), // MUSIC_STYLE_JUNGLE_DRUMS
|
||||
MAKE_TUNEID_LIST(19), // MUSIC_STYLE_EGYPTIAN
|
||||
MAKE_TUNEID_LIST(20), // MUSIC_STYLE_TOYLAND
|
||||
MAKE_TUNEID_LIST(21), // MUSIC_STYLE_8
|
||||
MAKE_TUNEID_LIST(21), // MUSIC_STYLE_CIRCUS_SHOW
|
||||
MAKE_TUNEID_LIST(22), // MUSIC_STYLE_SPACE
|
||||
MAKE_TUNEID_LIST(23), // MUSIC_STYLE_HORROR
|
||||
MAKE_TUNEID_LIST(24), // MUSIC_STYLE_TECHNO
|
||||
|
@ -3313,7 +3313,7 @@ int ride_music_params_update(sint16 x, sint16 y, sint16 z, uint8 rideIndex, uint
|
|||
#define INIT_MUSIC_INFO(pathid, offset, length, unknown) (rct_ride_music_info[]){length, offset, pathid, unknown}
|
||||
|
||||
//0x009AF1C8
|
||||
rct_ride_music_info* ride_music_info_list[] = {
|
||||
rct_ride_music_info* ride_music_info_list[46] = {
|
||||
INIT_MUSIC_INFO(PATH_ID_CSS4, 1378, 8139054, 0),
|
||||
INIT_MUSIC_INFO(PATH_ID_CSS5, 1378, 7796656, 0),
|
||||
INIT_MUSIC_INFO(PATH_ID_CSS6, 1378, 15787850, 0),
|
||||
|
|
|
@ -598,7 +598,7 @@ enum {
|
|||
MUSIC_STYLE_JUNGLE_DRUMS,
|
||||
MUSIC_STYLE_EGYPTIAN,
|
||||
MUSIC_STYLE_TOYLAND,
|
||||
MUSIC_STYLE_8,
|
||||
MUSIC_STYLE_CIRCUS_SHOW,
|
||||
MUSIC_STYLE_SPACE,
|
||||
MUSIC_STYLE_HORROR,
|
||||
MUSIC_STYLE_TECHNO,
|
||||
|
|
Loading…
Reference in New Issue