work on m_Do_audio and d_com_inf_game (#18)

* fix float issues and add decompctx.py tool

* work on m_Do_audio and d_com_inf_game

* fix build
This commit is contained in:
TakaRikka
2023-09-12 03:14:40 -07:00
committed by GitHub
parent 06ec97aade
commit 85b77c336b
24 changed files with 717 additions and 256 deletions
+17 -1
View File
@@ -309,7 +309,7 @@ public:
class dComIfG_inf_c {
public:
dComIfG_inf_c() { ct(); }
~dComIfG_inf_c();
~dComIfG_inf_c() {}
void ct();
@@ -344,6 +344,10 @@ inline void dComIfGs_setEventReg(u16 i_reg, u8 i_no) {
g_dComIfG_gameInfo.save.getEvent().setEventReg(i_reg, i_no);
}
inline u8 dComIfGs_getEventReg(u16 i_reg) {
return g_dComIfG_gameInfo.save.getEvent().getEventReg(i_reg);
}
inline BOOL dComIfGs_isEventBit(u16 id) {
return g_dComIfG_gameInfo.save.getEvent().isEventBit(id);
}
@@ -503,6 +507,18 @@ inline dBgS* dComIfG_Bgsp() {
return &g_dComIfG_gameInfo.play.mBgS;
}
inline daShip_c* dComIfGp_getShipActor() {
return (daShip_c*)g_dComIfG_gameInfo.play.getPlayerPtr(2);
}
inline void dComIfGp_getIkadaShipBeforePos(Vec* o_pos) {
*o_pos = g_dComIfG_gameInfo.play.mIkadaLinkPos;
}
inline dStage_stageDt_c& dComIfGp_getStage() {
return g_dComIfG_gameInfo.play.getStage();
}
inline daPy_lk_c* daPy_getPlayerLinkActorClass() {
return (daPy_lk_c*)g_dComIfG_gameInfo.play.getPlayerPtr(0);
}