aboutsummaryrefslogtreecommitdiff
path: root/project/dclib/lib-mkw.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--project/dclib/lib-mkw.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/project/dclib/lib-mkw.h b/project/dclib/lib-mkw.h
index f0df9b5..8a19dbb 100644
--- a/project/dclib/lib-mkw.h
+++ b/project/dclib/lib-mkw.h
@@ -89,6 +89,17 @@ enum mkw_consts_t // some constants
MKW_ORIGINAL_BEG = MKW_TRACK_BEG,
MKW_ORIGINAL_END = MKW_ARENA_END,
+ //--- LE-CODE random tracks
+
+ MKW_N_LE_RANDOM = 0x04,
+ MKW_LE_RANDOM_BEG = 0x3e,
+ MKW_LE_RANDOM_END = MKW_LE_RANDOM_BEG + MKW_N_LE_RANDOM,
+
+ //--- LE-CODE extended slots
+
+ MKW_LE_SLOT_BEG = 0x44,
+ MKW_LE_SLOT_END = 0x1000,
+ MKW_N_LE_SLOT = MKW_LE_SLOT_END - MKW_LE_SLOT_BEG,
//--- music ids
@@ -111,6 +122,14 @@ static inline bool IsMkwOriginal ( uint tid )
static inline bool IsMkwCustom ( uint tid )
{ return tid >= MKW_ARENA_END; }
+static inline bool IsLecodeRandom ( uint tid )
+ { return tid >= MKW_LE_RANDOM_BEG && tid < MKW_LE_RANDOM_END; }
+
+static inline bool IsValidLecodeSlot ( uint tid )
+ { return tid < MKW_ARENA_END
+ || tid >= MKW_LE_SLOT_BEG && tid < MKW_LE_SLOT_END
+ || tid >= MKW_LE_RANDOM_BEG && tid < MKW_LE_RANDOM_END; }
+
//
///////////////////////////////////////////////////////////////////////////////
/////////////// 24p support ///////////////