From eb71ae7bdb97df01bf6cf0f2adc0f84e59e16fcb Mon Sep 17 00:00:00 2001 From: Wiimm Date: Sat, 9 Sep 2023 13:11:10 +0200 Subject: SZS v2.37a --- project/src/lib-lecode.h | 103 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 102 insertions(+), 1 deletion(-) (limited to 'project/src/lib-lecode.h') diff --git a/project/src/lib-lecode.h b/project/src/lib-lecode.h index b0739f2..a165365 100644 --- a/project/src/lib-lecode.h +++ b/project/src/lib-lecode.h @@ -344,6 +344,7 @@ typedef struct le_lpar_t u8 vs_textures; // &1: enable texture hacks for versus, &2:alternable u8 block_textures; // >0: enable blocking of recent texture hacks u8 staticr_points; // >0: use points definied by StaticR.rel + u8 use_avail_txt; // >0: use file "avail.txt" to detect dir "Race/Common/###/" u8 debug_mode; // debug mode u8 debug_predef[LEDEB__N_CONFIG]; @@ -1097,10 +1098,108 @@ __attribute__ ((packed)) le_binpar_v1_274_t; _Static_assert(sizeof(le_binpar_v1_274_t)==0x274,"le_binpar_v1_274_t"); +//----------------------------------------------------------------------------- +// [[le_binpar_v1_275_t]] + +typedef struct le_binpar_v1_275_t +{ + //--- le_binary_param_t + + /*000*/ char magic[8]; // LE_PARAM_MAGIC ("LPAR") + /*008*/ u32 version; // always 1 for v1 + /*00c*/ u32 size; // size (and minor version) + /*010*/ u32 off_eod; // offset of end-of-data + + //--- le_binpar_v1_35_t + + /*014*/ u32 off_cup_par; // offset to cup param + /*018*/ u32 off_cup_track; // offset of cup-track list + /*01c*/ u32 off_cup_arena; // offset of cup-arena list + /*020*/ u32 off_course_par; // offset of course param + /*024*/ u32 off_property; // offset of property list + /*028*/ u32 off_music; // offset of music list + /*02c*/ u32 off_flags; // offset of flags + + /*030*/ u8 engine[3]; // 100cc, 150cc, mirror (sum always 100) + /*033*/ u8 enable_200cc; // TRUE: 200C enabled => 150cc, 200cc, mirror + /*034*/ u8 enable_perfmon; // >0: performance monitor enabled; >1: for dolphin too + + //--- le_binpar_v1_37_t + + /*035*/ u8 enable_custom_tt; // TRUE: time trial for cusotm tracks enabled + /*036*/ u8 enable_xpflags; // TRUE: extended presence flags enabled + + //--- le_binpar_v1_f8_t + + /*037*/ u8 block_track; // block used track for 0.. tracks + /*038*/ u16 chat_mode_1[BMG_N_CHAT]; // mode for each chat message + + //--- le_binpar_v1_1b8_t + + /*0f8*/ u16 chat_mode_2[BMG_N_CHAT]; // mode for each chat message + + //--- le_binpar_v1_1bc_t + + /*1b8*/ u8 enable_speedo; // speedometer selection (0..2), see SPEEDO_* + /*1b9*/ u8 no_speedo_if_debug; // if bit is set: suppress speedometer + /*1ba*/ u8 debug_mode; // debug mode (0..), see DEBUGMD_* + + //--- le_binpar_v1_260_t + + /*1bb*/ u8 item_cheat; // 0:disabled, 1:enabled + + /*1bc*/ u8 debug_predef[LEDEB__N_CONFIG]; + // information about used predefined mode + /*1c0*/ u32 debug[LEDEB__N_CONFIG][LEDEB__N_LINE]; + // debug line settings, see LEDEB_* + + //--- le_binpar_v1_264_t + + /*260*/ u8 cheat_mode; // 0:off, 1:debug only, 2:allow all + /*261*/ u8 drag_blue_shell; // >0: allow dragging of blue shell + /*262*/ u16 thcloud_frames; // number of frames a player is small after thundercloud hit + + //--- le_binpar_v1_269_t + + /*264*/ u8 bt_worldwide; // >0: enable worldwide battles + /*265*/ u8 vs_worldwide; // >0: enable worldwide versus races + /*266*/ u8 bt_textures; // &1: enable texture hacks for battles, &2:alternable + /*267*/ u8 vs_textures; // &1: enable texture hacks for versus, &2:alternable + /*268*/ u8 block_textures; // >0: enable blocking of recent texture hacks + + //--- le_binpar_v1_26a_t + + /*269*/ u8 staticr_points; // >0: use points definied by StaticR.rel + + //--- le_binpar_v1_270_t + + /*26a*/ u16 default_online_sec; // default time limit in seconds + /*26c*/ u16 min_online_sec; // minimal time limit in seconds, that can be set by LEX:SET1 + /*26e*/ u16 max_online_sec; // maximal time limit in seconds, that can be set by LEX:SET1 + + //--- le_binpar_v1_274_t + + /*270*/ u8 developer_modes; // >0: developer settings are recognized and accepted. + /*271*/ u8 dev_mode1; // First developer mode + /*272*/ u8 dev_mode2; // Second developer mode + /*273*/ u8 dev_mode3; // Third developer mode + + //--- le_binpar_v1_275_t + + /*274*/ u8 use_avail_txt; // >0: use file "avail.txt" to detect dir "Race/Common/###/" + + //--- END + + /*275*/ +} +__attribute__ ((packed)) le_binpar_v1_275_t; + +_Static_assert(sizeof(le_binpar_v1_275_t)==0x275,"le_binpar_v1_275_t"); + //----------------------------------------------------------------------------- // [[le_binpar_v1_t]] [[new-lpar]] -typedef struct le_binpar_v1_274_t le_binpar_v1_t; +typedef struct le_binpar_v1_275_t le_binpar_v1_t; // /////////////////////////////////////////////////////////////////////////////// @@ -1241,9 +1340,11 @@ char GetLEUsageChar ( le_usage_t usage ); ccp GetLEUsageCharCol ( le_usage_t usage, const ColorSet_t *colset, ccp * prev_col ); ccp GetLEValid ( le_valid_t valid ); +ccp GetLEInValid ( le_valid_t valid ); void CalculateStatsLE ( le_analyze_t *ana ); void DumpLEAnalyse ( FILE *f, uint indent, const le_analyze_t *ana ); +ccp FindTrackFile ( ccp src_name, TransferMode_t *tfer_mode ); // returns NULL or alloced path void TransferTrackFile ( LogFile_t *log, uint dest_slot, ccp src_name, TransferMode_t flags ); void TransferTrackBySlot ( LogFile_t *log, uint dest_slot, uint src_slot, TransferMode_t flags ); -- cgit v1.3.1