summaryrefslogtreecommitdiff
path: root/include/JSystem
diff options
context:
space:
mode:
Diffstat (limited to 'include/JSystem')
-rw-r--r--include/JSystem/JHostIO/JORMContext.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/JSystem/JHostIO/JORMContext.h b/include/JSystem/JHostIO/JORMContext.h
index ad4d19f9f1..725cae652e 100644
--- a/include/JSystem/JHostIO/JORMContext.h
+++ b/include/JSystem/JHostIO/JORMContext.h
@@ -86,6 +86,11 @@
updateSelectorSub(mode, (uintptr_t)pSrc, *pSrc, param_2); \
}
+#define DEFINE_UPDATE_COMBO_BOX_ID(T) \
+ void updateComboBoxID(u32 mode, u32 id, T value, u32 param_4) { \
+ updateSelectorSub(mode, id, value, param_4); \
+ }
+
#define DEFINE_UPDATE_SLIDER(T) \
void updateSlider(u32 mode, T* pSrc, T rangeMin, T rangeMax, u32 param_5) { \
updateSliderSub(mode, (uintptr_t)pSrc, *pSrc, rangeMin, rangeMax, param_5); \
@@ -258,10 +263,12 @@ public:
DEFINE_START_COMBO_BOX(s16, jhostio::EKind_16B)
DEFINE_START_COMBO_BOX(s32, jhostio::EKind_32B)
- DEFINE_START_COMBO_BOX_ID(int, JORPropertyEvent::EKind_ValueID)
+ DEFINE_START_COMBO_BOX_ID(s32, JORPropertyEvent::EKind_ValueID)
DEFINE_UPDATE_COMBO_BOX(u8)
+ DEFINE_UPDATE_COMBO_BOX_ID(s32)
+
void endComboBox() { endSelectorSub(); }
void genComboBoxItem(const char* label, s32 itemNo) {