diff options
| author | Pheenoh <pheenoh@gmail.com> | 2022-12-22 10:36:47 -0700 |
|---|---|---|
| committer | Pheenoh <pheenoh@gmail.com> | 2022-12-22 10:36:47 -0700 |
| commit | a2c1e7afafc5c494aabf55629909eaea4264f0fa (patch) | |
| tree | d1ee37a01c2f7d9d20cee9d810116d06348d9238 /include | |
| parent | f6318d671c023965c6d15c5b83a626032efdc03a (diff) | |
dTimer_createStockTimer
Diffstat (limited to 'include')
| -rw-r--r-- | include/d/com/d_com_inf_game.h | 8 | ||||
| -rw-r--r-- | include/d/d_timer.h | 2 | ||||
| -rw-r--r-- | include/f_op/f_op_msg_mng.h | 6 |
3 files changed, 15 insertions, 1 deletions
diff --git a/include/d/com/d_com_inf_game.h b/include/d/com/d_com_inf_game.h index 82e13fd123..3e1779f381 100644 --- a/include/d/com/d_com_inf_game.h +++ b/include/d/com/d_com_inf_game.h @@ -703,10 +703,18 @@ inline int dComIfG_getTimerMode() { return g_dComIfG_gameInfo.play.getTimerMode(); } +inline void dComIfG_setTimerMode(int mode) { + return g_dComIfG_gameInfo.play.setTimerMode(mode); +} + inline dTimer_c* dComIfG_getTimerPtr() { return g_dComIfG_gameInfo.play.getTimerPtr(); } +inline u8 dComIfG_getTimerType() { + return g_dComIfG_gameInfo.play.getTimerType(); +} + inline int dComIfG_setObjectRes(const char* name, u8 param_1, JKRHeap* heap) { return g_dComIfG_gameInfo.mResControl.setObjectRes(name, param_1, heap); } diff --git a/include/d/d_timer.h b/include/d/d_timer.h index 69f7499c9e..0d64c5870a 100644 --- a/include/d/d_timer.h +++ b/include/d/d_timer.h @@ -8,7 +8,7 @@ #include "d/msg/d_msg_class.h" #include "JSystem/JKernel/JKRExpHeap.h" -void dTimer_createStockTimer(); +s32 dTimer_createStockTimer(); class dTimer_c : public msg_class { private: diff --git a/include/f_op/f_op_msg_mng.h b/include/f_op/f_op_msg_mng.h index 05abfdc3f0..a43df3d444 100644 --- a/include/f_op/f_op_msg_mng.h +++ b/include/f_op/f_op_msg_mng.h @@ -40,5 +40,11 @@ int fopMsgM_messageSet(u32 param_0, u32 param_1); int fopMsgM_messageSetDemo(u32 param_0); msg_class* fopMsgM_SearchByID(unsigned int param_0); char* fopMsgM_messageGet(char* msg, u32 string_id); +s32 fop_Timer_create(s16 param_0, u8 param_1, u32 param_2, u8 param_3, u8 param_4, f32 param_5, + f32 param_6, f32 param_7, f32 param_8, fopMsgCreateFunc createFunc); +inline s32 fopMsgM_Timer_create(s16 param_0, u8 param_1, u32 param_2, u8 param_3, u8 param_4, f32 param_5, + f32 param_6, f32 param_7, f32 param_8, fopMsgCreateFunc createFunc) { + return fop_Timer_create(param_0, param_1, param_2, param_3, param_4, param_5, param_6, param_7, param_8, createFunc); + } #endif |
