aboutsummaryrefslogtreecommitdiff
path: root/project/dclib/lib-mkw.h
diff options
context:
space:
mode:
authorWiimm <wiimm@wiimm.de>2023-09-09 13:11:10 +0200
committerWiimm <wiimm@wiimm.de>2023-09-09 13:11:10 +0200
commiteb71ae7bdb97df01bf6cf0f2adc0f84e59e16fcb (patch)
tree4ff0a56d71336c2c736698018fcb0ffb1dc6a1cf /project/dclib/lib-mkw.h
parent7a4ee26983b941ce0a8f72bcc02bf5566e9a7886 (diff)
SZS v2.37a
Diffstat (limited to 'project/dclib/lib-mkw.h')
-rw-r--r--project/dclib/lib-mkw.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/project/dclib/lib-mkw.h b/project/dclib/lib-mkw.h
index b0d7558..37ad862 100644
--- a/project/dclib/lib-mkw.h
+++ b/project/dclib/lib-mkw.h
@@ -90,6 +90,13 @@ enum mkw_consts_t // some constants
MKW_ORIGINAL_END = MKW_ARENA_END,
+ //--- original extra slots
+
+ MKW_EXTRA_BEG = 0x36,
+ MKW_EXTRA_END = 0x3b,
+ MKW_N_EXTRA = MKW_EXTRA_END - MKW_EXTRA_BEG,
+
+
//--- LE-CODE random tracks
MKW_LE_RANDOM_BEG = 0x3d,
@@ -101,6 +108,7 @@ enum mkw_consts_t // some constants
MKW_LE_RANDOM_END,
MKW_N_LE_RANDOM = MKW_LE_RANDOM_END - MKW_LE_RANDOM_BEG,
+
//--- LE-CODE extended slots
MKW_LE_SLOT_BEG = 0x44,
@@ -108,7 +116,7 @@ enum mkw_consts_t // some constants
MKW_N_LE_SLOT = MKW_LE_SLOT_END - MKW_LE_SLOT_BEG,
- //--- special slots (LE-CODE randon included)
+ //--- special slots (LE-CODE random included)
MKW_SPECIAL_BEG = MKW_ORIGINAL_END,
MKW_SPECIAL_END = MKW_LE_SLOT_BEG,
@@ -123,6 +131,8 @@ enum mkw_consts_t // some constants
//-----------------------------------------------------------------------------
+ccp GetMkwExtraInfo ( uint slot, ccp return_on_err );
+
ccp GetLecodeRandomName ( uint slot, ccp return_on_err );
ccp GetLecodeRandomInfo ( uint slot, ccp return_on_err );
@@ -147,11 +157,15 @@ static inline bool IsMkwOriginal ( uint tid )
static inline bool IsMkwCustom ( uint tid )
{ return tid >= MKW_ARENA_END; }
+static inline bool IsMkwExtra ( uint tid )
+ { return tid >= MKW_EXTRA_BEG && tid < MKW_EXTRA_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_EXTRA_BEG && tid < MKW_EXTRA_END
|| tid >= MKW_LE_SLOT_BEG && tid < MKW_LE_SLOT_END
|| tid >= MKW_LE_RANDOM_BEG && tid < MKW_LE_RANDOM_END; }