mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
@@ -2,5 +2,12 @@
|
||||
#define J3DGD_H
|
||||
|
||||
#include "dolphin/types.h"
|
||||
#include "dolphin/gx/GX.h"
|
||||
|
||||
static inline void J3DFifoLoadIndx(u8 cmd, u16 indx, u16 addr) {
|
||||
GFX_FIFO(u8) = cmd;
|
||||
GFX_FIFO(u16) = indx;
|
||||
GFX_FIFO(u16) = addr;
|
||||
}
|
||||
|
||||
#endif /* J3DGD_H */
|
||||
|
||||
@@ -363,4 +363,9 @@ public:
|
||||
/* 0x2D */ u8 mResMax;
|
||||
};
|
||||
|
||||
// not sure where this belongs
|
||||
static inline u32 COLOR_MULTI(u32 a, u32 b) {
|
||||
return ((a * (b + 1)) * 0x10000) >> 24;
|
||||
}
|
||||
|
||||
#endif /* JPAPARTICLE_H */
|
||||
|
||||
@@ -93,6 +93,10 @@ private:
|
||||
/* 0xCC */ u8 mFlags2;
|
||||
}; // Size: 0xD0
|
||||
|
||||
inline Z2CreatureLink* Z2GetLink() {
|
||||
return Z2CreatureLink::mLinkPtr;
|
||||
}
|
||||
|
||||
class Z2CreatureRide;
|
||||
struct Z2RideSoundStarter : public Z2SoundStarter {
|
||||
/* 802C5234 */ Z2RideSoundStarter(Z2CreatureRide*);
|
||||
|
||||
@@ -162,4 +162,6 @@ struct Z2EnvSeMgr {
|
||||
|
||||
STATIC_ASSERT(sizeof(Z2EnvSeMgr) == 0x30C);
|
||||
|
||||
extern Z2EnvSeMgr g_mEnvSeMgr;
|
||||
|
||||
#endif /* Z2ENVSEMGR_H */
|
||||
|
||||
@@ -36,4 +36,10 @@ private:
|
||||
|
||||
STATIC_ASSERT(sizeof(Z2SoundMgr) == 0x810);
|
||||
|
||||
extern Z2SoundMgr* data_80450B60;
|
||||
|
||||
inline Z2SoundMgr* Z2GetSoundMgr() {
|
||||
return data_80450B60;
|
||||
}
|
||||
|
||||
#endif /* Z2SOUNDMGR_H */
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
#include "dolphin/types.h"
|
||||
#include "rel/d/a/kytag/d_a_kytag05/d_a_kytag05.h"
|
||||
#include "rel/d/a/tag/d_a_tag_mmsg/d_a_tag_mmsg.h"
|
||||
#include "f_op/f_op_scene.h"
|
||||
#include "f_op/f_op_actor_mng.h"
|
||||
|
||||
class fopEn_enemy_c;
|
||||
class daAlinkHIO_anm_c;
|
||||
@@ -4801,4 +4803,4 @@ static void* daAlink_searchCanoe(fopAc_ac_c* param_0, void* param_1);
|
||||
static void* daAlink_searchBoar(fopAc_ac_c* param_0, void* param_1);
|
||||
static fopAc_ac_c* daAlink_searchLightBall(fopAc_ac_c* p_actor, void* param_1);
|
||||
|
||||
#endif /* D_A_D_A_ALINK_H */
|
||||
#endif /* D_A_D_A_ALINK_H */
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#define A_OBJ_D_A_OBJ_ITEM_H
|
||||
|
||||
#include "d/a/d_a_item_static.h"
|
||||
#include "f_op/f_op_actor_mng.h"
|
||||
|
||||
namespace daItem_prm {
|
||||
static inline u8 getItemNo(daItem_c* item) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "d/com/d_com_inf_game.h"
|
||||
#include "dolphin/types.h"
|
||||
#include "f_op/f_op_actor_mng.h"
|
||||
#include "f_op/f_op_actor.h"
|
||||
|
||||
struct dCcU_AtInfo {
|
||||
/* 0x00 */ cCcD_Obj* mpCollider;
|
||||
|
||||
@@ -774,8 +774,13 @@ u16 dComIfGs_getMaxLifeGauge();
|
||||
void dComIfGs_setWarpMarkFlag(u8);
|
||||
void dComIfGs_setSelectEquipSword(u8 i_itemNo);
|
||||
void dComIfGs_setSelectEquipShield(u8 i_itemNo);
|
||||
int dComIfGs_isItemFirstBit(u8 i_itemNo);
|
||||
u16 dComIfGs_getRupee();
|
||||
inline int i_dComIfGs_isItemFirstBit(u8 i_no) {
|
||||
return g_dComIfG_gameInfo.info.getPlayer().getGetItem().isFirstBit(i_no);
|
||||
}
|
||||
|
||||
inline u16 i_dComIfGs_getRupee() {
|
||||
return g_dComIfG_gameInfo.info.getPlayer().getPlayerStatusA().getRupee();
|
||||
}
|
||||
BOOL dComIfGs_isVisitedRoom(int i_roomNo);
|
||||
void dComIfGs_onZoneSwitch(int swBit, int roomNo);
|
||||
void dComIfGs_onOneZoneSwitch(int param_0, int param_1);
|
||||
@@ -920,6 +925,10 @@ inline void dComIfGs_onEventBit(u16 id) {
|
||||
g_dComIfG_gameInfo.info.getSavedata().getEvent().onEventBit(id);
|
||||
}
|
||||
|
||||
inline BOOL i_dComIfGs_isEventBit(u16 id) {
|
||||
return g_dComIfG_gameInfo.info.getEvent().isEventBit(id);
|
||||
}
|
||||
|
||||
inline void dComIfGs_onLightDropFlag(u8 i_nowLevel) {
|
||||
g_dComIfG_gameInfo.info.getPlayer().getLightDrop().onLightDropGetFlag(i_nowLevel);
|
||||
}
|
||||
@@ -936,6 +945,10 @@ inline BOOL dComIfGs_isSwitch(int i_no, int i_roomNo) {
|
||||
return g_dComIfG_gameInfo.info.isSwitch(i_no, i_roomNo);
|
||||
}
|
||||
|
||||
inline void dComIfGs_onSvZoneSwitch(int zoneNo, int swBit) {
|
||||
g_dComIfG_gameInfo.info.getZone(zoneNo).getZoneBit().onSwitch(swBit);
|
||||
}
|
||||
|
||||
inline s32 dComIfGs_isDungeonItemMap() {
|
||||
return g_dComIfG_gameInfo.info.getMemory().getBit().isDungeonItemMap();
|
||||
}
|
||||
@@ -993,6 +1006,10 @@ inline u16 dComIfGs_getMaxLife() {
|
||||
return g_dComIfG_gameInfo.info.getPlayer().getPlayerStatusA().getMaxLife();
|
||||
}
|
||||
|
||||
inline u16 i_dComIfGs_getLife() {
|
||||
return g_dComIfG_gameInfo.info.getPlayer().getPlayerStatusA().getLife();
|
||||
}
|
||||
|
||||
inline void dComIfGs_offEventBit(u16 event) {
|
||||
g_dComIfG_gameInfo.info.getSavedata().getEvent().offEventBit(event);
|
||||
}
|
||||
@@ -1093,6 +1110,10 @@ inline void dComIfGs_setKeyNum(u8 keyNum) {
|
||||
g_dComIfG_gameInfo.info.getMemory().getBit().setKeyNum(keyNum);
|
||||
}
|
||||
|
||||
inline BOOL dComIfGs_isSaveVisitedRoom(int param_0, int param_1) {
|
||||
return g_dComIfG_gameInfo.info.getSavedata().getSave2(param_0)->isVisitedRoom(param_1);
|
||||
}
|
||||
|
||||
inline s16 dComIfGs_getOil() {
|
||||
return g_dComIfG_gameInfo.info.getPlayer().getPlayerStatusA().getOil();
|
||||
}
|
||||
@@ -1387,6 +1408,14 @@ inline u8 dComIfGs_checkBombBag(u8 i_itemNo) {
|
||||
return g_dComIfG_gameInfo.info.getPlayer().getItem().checkBombBag(i_itemNo);
|
||||
}
|
||||
|
||||
inline bool i_dComIfGp_checkPlayerStatus0(int param_0, u32 flag) {
|
||||
return g_dComIfG_gameInfo.play.checkPlayerStatus(param_0, 0, flag);
|
||||
}
|
||||
|
||||
inline bool i_dComIfGp_checkPlayerStatus1(int param_0, u32 flag) {
|
||||
return g_dComIfG_gameInfo.play.checkPlayerStatus(param_0, 1, flag);
|
||||
}
|
||||
|
||||
inline s64 dComIfGs_getTotalTime() {
|
||||
return g_dComIfG_gameInfo.info.getPlayer().getPlayerInfo().getTotalTime();
|
||||
}
|
||||
@@ -1439,8 +1468,13 @@ inline void dComIfGs_setMemoryToCard(u8* p_saveData, int dataNum) {
|
||||
g_dComIfG_gameInfo.info.memory_to_card((char*)p_saveData, dataNum);
|
||||
}
|
||||
|
||||
void dComIfGp_setItemLifeCount(f32 amount, u8 type);
|
||||
void dComIfGp_setItemRupeeCount(long amount);
|
||||
|
||||
inline void i_dComIfGp_setItemLifeCount(float amount, u8 type) {
|
||||
g_dComIfG_gameInfo.play.setItemLifeCount(amount, type);
|
||||
}
|
||||
inline void i_dComIfGp_setItemRupeeCount(int amount) {
|
||||
g_dComIfG_gameInfo.play.setItemRupeeCount(amount);
|
||||
}
|
||||
void dComIfGp_setSelectItem(int index);
|
||||
s32 dComIfGp_offHeapLockFlag(int flag);
|
||||
void dComIfGp_createSubExpHeap2D();
|
||||
@@ -1496,6 +1530,14 @@ inline void* dComIfGp_getPlayer(int idx) {
|
||||
return g_dComIfG_gameInfo.play.getPlayer(idx);
|
||||
}
|
||||
|
||||
inline s8 i_dComIfGp_getPlayerCameraID(int idx) {
|
||||
return g_dComIfG_gameInfo.play.getPlayerCameraID(idx);
|
||||
}
|
||||
|
||||
inline daHorse_c* i_dComIfGp_getHorseActor() {
|
||||
return (daHorse_c*)g_dComIfG_gameInfo.play.getPlayerPtr(1);
|
||||
}
|
||||
|
||||
inline dMsgObject_c* dComIfGp_getMsgObjectClass() {
|
||||
return g_dComIfG_gameInfo.play.getMsgObjectClass();
|
||||
}
|
||||
@@ -1952,6 +1994,10 @@ inline void dComIfGp_clearPlayerStatus0(int param_0, u32 flag) {
|
||||
g_dComIfG_gameInfo.play.clearPlayerStatus(param_0, 0, flag);
|
||||
}
|
||||
|
||||
inline dStage_stageDt_c* i_dComIfGp_getStage() {
|
||||
return &g_dComIfG_gameInfo.play.getStage();
|
||||
}
|
||||
|
||||
inline stage_scls_info_dummy_class* dComIfGp_getStageSclsInfo() {
|
||||
return g_dComIfG_gameInfo.play.getStage().getSclsInfo();
|
||||
}
|
||||
@@ -2174,6 +2220,26 @@ inline void dComIfGp_roomControl_zoneCountCheck(int i_roomNo) {
|
||||
g_dComIfG_gameInfo.play.mRoomControl.zoneCountCheck(i_roomNo);
|
||||
}
|
||||
|
||||
inline u8 i_dComIfGp_getRStatus() {
|
||||
return g_dComIfG_gameInfo.play.getRStatus();
|
||||
}
|
||||
|
||||
inline void i_dComIfGp_setBottleStatus(u8 param_0, u8 param_1) {
|
||||
g_dComIfG_gameInfo.play.setBottleStatus(param_0, param_1);
|
||||
}
|
||||
|
||||
inline u8 i_dComIfGp_getDoStatus() {
|
||||
return g_dComIfG_gameInfo.play.getDoStatus();
|
||||
}
|
||||
|
||||
inline dEvt_control_c& i_dComIfGp_getEvent() {
|
||||
return g_dComIfG_gameInfo.play.getEvent();
|
||||
}
|
||||
|
||||
inline dEvent_manager_c& i_dComIfGp_getEventManager() {
|
||||
return g_dComIfG_gameInfo.play.getEvtManager();
|
||||
}
|
||||
|
||||
inline BOOL dComIfGp_event_compulsory(void* param_0, const char* param_1, u16 param_2) {
|
||||
return g_dComIfG_gameInfo.play.getEvent().compulsory(param_0, param_1, param_2);
|
||||
}
|
||||
@@ -2227,6 +2293,25 @@ inline void* dComIfGp_event_getPt2() {
|
||||
return g_dComIfG_gameInfo.play.getEvent().convPId(pt2);
|
||||
}
|
||||
|
||||
inline BOOL i_dComIfGp_event_runCheck() {
|
||||
return g_dComIfG_gameInfo.play.getEvent().runCheck();
|
||||
}
|
||||
|
||||
inline u16 dComIfGp_event_checkHind(u16 flag) {
|
||||
if (!i_dComIfGp_event_runCheck()) {
|
||||
return false;
|
||||
}
|
||||
return g_dComIfG_gameInfo.play.getEvent().checkHind(flag);
|
||||
}
|
||||
|
||||
inline u16 i_dComIfGp_event_chkEventFlag(u16 flag) {
|
||||
return g_dComIfG_gameInfo.play.getEvent().chkEventFlag(flag);
|
||||
}
|
||||
|
||||
inline void dComIfGp_event_setCullRate(f32 f) {
|
||||
g_dComIfG_gameInfo.play.getEvent().setCullRate(f);
|
||||
}
|
||||
|
||||
inline int i_dComIfGp_evmng_getMyStaffId(const char* pName, fopAc_ac_c* pActor, int param_2) {
|
||||
return dComIfGp_getPEvtManager()->getMyStaffId(pName, pActor, param_2);
|
||||
}
|
||||
@@ -2369,6 +2454,19 @@ int dComIfGd_setShadow(u32 param_0, s8 param_1, J3DModel* param_2, cXyz* param_3
|
||||
f32 param_5, f32 param_6, f32 param_7, cBgS_PolyInfo& param_8,
|
||||
dKy_tevstr_c* param_9, s16 param_10, f32 param_11, _GXTexObj* param_12);
|
||||
|
||||
|
||||
inline int dComIfGd_setRealShadow(u32 param_0, s8 param_1, J3DModel* param_2, cXyz* param_3,
|
||||
f32 param_4, f32 param_5, dKy_tevstr_c* param_6) {
|
||||
return g_dComIfG_gameInfo.drawlist.setRealShadow(param_0, param_1, param_2, param_3, param_4,
|
||||
param_5, param_6);
|
||||
}
|
||||
|
||||
inline int dComIfGd_setSimpleShadow(cXyz* pos, f32 param_1, f32 param_2, cXyz* param_3, s16 angle,
|
||||
f32 param_5, _GXTexObj* tex) {
|
||||
return g_dComIfG_gameInfo.drawlist.setSimpleShadow(pos, param_1, param_2, param_3, angle,
|
||||
param_5, tex);
|
||||
}
|
||||
|
||||
inline void dComIfGd_drawListItem3d() {
|
||||
g_dComIfG_gameInfo.drawlist.drawOpaListItem3d();
|
||||
g_dComIfG_gameInfo.drawlist.drawXluListItem3d();
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
#include "d/bg/d_bg_s_acch.h"
|
||||
#include "d/cc/d_cc_d.h"
|
||||
#include "d/kankyo/d_kankyo.h"
|
||||
#include "f_op/f_op_actor.h"
|
||||
#include "f_op/f_op_actor_mng.h"
|
||||
|
||||
class daNbomb_c {
|
||||
public:
|
||||
|
||||
+4
-1
@@ -7,7 +7,6 @@
|
||||
#include "d/save/d_save.h"
|
||||
#include "dolphin/types.h"
|
||||
#include "f_op/f_op_actor.h"
|
||||
#include "f_op/f_op_actor_mng.h"
|
||||
|
||||
struct stage_vrboxcol_info_class {
|
||||
// VRB
|
||||
@@ -908,6 +907,10 @@ inline int dStage_stagInfo_GetMsgGroup(stage_stag_info_class* p_info) {
|
||||
return p_info->mMsgGroup;
|
||||
}
|
||||
|
||||
inline s32 i_dStage_stagInfo_GetSaveTbl(stage_stag_info_class* param_0) {
|
||||
return param_0->field_0x09 >> 1 & 0x1f;
|
||||
}
|
||||
|
||||
inline u32 dStage_sclsInfo_getSceneLayer(stage_scls_info_class* p_info) {
|
||||
return p_info->field_0xb & 0xF;
|
||||
}
|
||||
|
||||
@@ -490,7 +490,6 @@ public:
|
||||
}; // Size: 0x1310
|
||||
|
||||
extern dScnKy_env_light_c g_env_light;
|
||||
extern Z2EnvSeMgr g_mEnvSeMgr;
|
||||
|
||||
STATIC_ASSERT(sizeof(dScnKy_env_light_c) == 4880);
|
||||
|
||||
|
||||
@@ -327,6 +327,10 @@ inline void dMeter2Info_allUseButton() {
|
||||
g_meter2_info.allUseButton();
|
||||
}
|
||||
|
||||
inline void i_dMeter2Info_offUseButton(int flag) {
|
||||
g_meter2_info.offUseButton(flag);
|
||||
}
|
||||
|
||||
inline void dMeter2Info_resetGameStatus() {
|
||||
g_meter2_info.resetGameStatus();
|
||||
}
|
||||
|
||||
@@ -244,6 +244,68 @@ inline BOOL fopAcM_IsExecuting(unsigned int id) {
|
||||
return fpcM_IsExecuting(id);
|
||||
}
|
||||
|
||||
inline f32 fopAcM_GetSpeedF(const fopAc_ac_c* p_actor) {
|
||||
return p_actor->mSpeedF;
|
||||
}
|
||||
|
||||
inline f32 fopAcM_GetGravity(const fopAc_ac_c* p_actor) {
|
||||
return p_actor->mGravity;
|
||||
}
|
||||
|
||||
inline f32 fopAcM_GetMaxFallSpeed(const fopAc_ac_c* p_actor) {
|
||||
return p_actor->mMaxFallSpeed;
|
||||
}
|
||||
|
||||
inline const cXyz& fopAcM_GetSpeed_p(const fopAc_ac_c* p_actor) {
|
||||
return p_actor->mSpeed;
|
||||
}
|
||||
|
||||
inline const cXyz& fopAcM_GetPosition_p(const fopAc_ac_c* p_actor) {
|
||||
return p_actor->mCurrent.mPosition;
|
||||
}
|
||||
|
||||
inline void dComIfGs_onSwitch(int i_no, int i_roomNo);
|
||||
inline void dComIfGs_offSwitch(int i_no, int i_roomNo);
|
||||
inline BOOL dComIfGs_isSwitch(int i_no, int i_roomNo);
|
||||
|
||||
inline void i_fopAcM_onSwitch(const fopAc_ac_c* pActor, int sw) {
|
||||
return dComIfGs_onSwitch(sw, fopAcM_GetHomeRoomNo(pActor));
|
||||
}
|
||||
|
||||
inline void i_fopAcM_offSwitch(const fopAc_ac_c* pActor, int sw) {
|
||||
return dComIfGs_offSwitch(sw, fopAcM_GetHomeRoomNo(pActor));
|
||||
}
|
||||
|
||||
inline bool i_fopAcM_isSwitch(const fopAc_ac_c* item, int sw) {
|
||||
return dComIfGs_isSwitch(sw, fopAcM_GetHomeRoomNo(item));
|
||||
}
|
||||
|
||||
inline void dComIfGs_onItem(int bitNo, int roomNo);
|
||||
inline void fopAcM_onItem(const fopAc_ac_c* item, int bitNo) {
|
||||
dComIfGs_onItem(bitNo, fopAcM_GetHomeRoomNo(item));
|
||||
}
|
||||
|
||||
|
||||
inline bool dComIfGs_isItem(int bitNo, int roomNo);
|
||||
inline bool fopAcM_isItem(const fopAc_ac_c* item, int bitNo) {
|
||||
return dComIfGs_isItem(bitNo, fopAcM_GetHomeRoomNo(item));
|
||||
}
|
||||
|
||||
inline f32 fopAcM_searchActorDistanceY(const fopAc_ac_c* actorA, const fopAc_ac_c* actorB) {
|
||||
return actorB->mCurrent.mPosition.y - actorA->mCurrent.mPosition.y;
|
||||
}
|
||||
|
||||
inline u16 fopAcM_GetSetId(const fopAc_ac_c* p_actor) {
|
||||
return p_actor->mSetID;
|
||||
}
|
||||
|
||||
inline void dComIfGs_onActor(int bitNo, int roomNo);
|
||||
|
||||
inline void fopAcM_onActor(const fopAc_ac_c* p_actor) {
|
||||
int setId = fopAcM_GetSetId(p_actor);
|
||||
dComIfGs_onActor(setId, fopAcM_GetHomeRoomNo(p_actor));
|
||||
}
|
||||
|
||||
void* fopAcM_FastCreate(s16 pProcTypeID, FastCreateReqFunc param_2, void* param_3, void* pData);
|
||||
|
||||
void fopAcM_setStageLayer(void* p_proc);
|
||||
@@ -428,6 +490,39 @@ s32 fopAcM_getWaterStream(const cXyz*, const cBgS_PolyInfo&, cXyz*, int*, int);
|
||||
s16 fopAcM_getPolygonAngle(const cBgS_PolyInfo&, s16);
|
||||
s16 fopAcM_getPolygonAngle(cM3dGPla const* param_0, s16 param_1);
|
||||
|
||||
|
||||
inline void make_prm_warp_hole(u32* actorParams, u8 p1, u8 p2, u8 p3) {
|
||||
u32 pp1 = (p3 << 0x8);
|
||||
u32 pp2 = (p2 << 0x10);
|
||||
u32 pp3 = (p1 << 0x1B) | 0x170000FF;
|
||||
*actorParams = pp2 | pp3 | pp1;
|
||||
}
|
||||
|
||||
inline void make_prm_bokkuri(u32* pActorParams, csXyz* p_angle, u8 param_2, u8 param_3, u8 param_4,
|
||||
u8 param_5, u8 param_6) {
|
||||
p_angle->x = (param_4 << 0x8) | (param_3 & 0xFF);
|
||||
p_angle->z = (param_6 << 0xD) | (param_2 << 0x1) | param_5;
|
||||
}
|
||||
|
||||
|
||||
inline void* dComIfGp_getPlayer(int);
|
||||
|
||||
inline s16 fopAcM_searchPlayerAngleY(const fopAc_ac_c* actor) {
|
||||
return fopAcM_searchActorAngleY(actor, (fopAc_ac_c*)dComIfGp_getPlayer(0));
|
||||
}
|
||||
|
||||
inline f32 fopAcM_searchPlayerDistanceY(const fopAc_ac_c* actor) {
|
||||
return fopAcM_searchActorDistanceY(actor, (fopAc_ac_c*)dComIfGp_getPlayer(0));
|
||||
}
|
||||
|
||||
inline f32 fopAcM_searchPlayerDistanceXZ2(const fopAc_ac_c* actor) {
|
||||
return fopAcM_searchActorDistanceXZ2(actor, (fopAc_ac_c*)dComIfGp_getPlayer(0));
|
||||
}
|
||||
|
||||
inline f32 fopAcM_searchPlayerDistance(const fopAc_ac_c* actor) {
|
||||
return fopAcM_searchActorDistance(actor, (fopAc_ac_c*)dComIfGp_getPlayer(0));
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
void fopAcM_initManager__Fv(void);
|
||||
void fopAcM_CreateAppend__Fv(void);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef F_F_OP_SCENE_MNG_H_
|
||||
#define F_F_OP_SCENE_MNG_H_
|
||||
|
||||
#include "f_op/f_op_actor_mng.h"
|
||||
#include "f_pc/f_pc_manager.h"
|
||||
#include "f_op/f_op_scene_pause.h"
|
||||
|
||||
scene_class* fopScnM_SearchByID(unsigned int id);
|
||||
@@ -26,4 +26,4 @@ inline int fopScnM_LayerID(void* proc) {
|
||||
return fpcM_LayerID(proc);
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#define M_DO_M_DO_AUDIO_H
|
||||
|
||||
#include "Z2AudioLib/Z2AudioMgr.h"
|
||||
#include "Z2AudioLib/Z2EnvSeMgr.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
// move/fix later
|
||||
@@ -79,6 +80,11 @@ inline void mDoAud_seStart(u32 sfx_id, const Vec* param_1, u32 param_2, s8 param
|
||||
-1.0f, 0);
|
||||
}
|
||||
|
||||
inline void i_mDoAud_seStartLevel(u32 sfx_id, const Vec* param_1, u32 param_2, s8 param_3) {
|
||||
Z2AudioMgr::getInterface()->mSeMgr.seStartLevel(sfx_id, param_1, param_2, param_3, 1.0f, 1.0f,
|
||||
-1.0f, -1.0f, 0);
|
||||
}
|
||||
|
||||
inline void mDoAud_messageSePlay(u16 param_0, Vec* position, s8 param_2) {
|
||||
Z2AudioMgr::getInterface()->mSeMgr.messageSePlay(param_0, position, param_2);
|
||||
}
|
||||
@@ -99,4 +105,12 @@ inline void mDoAud_bgmStop(u32 param_0) {
|
||||
Z2AudioMgr::getInterface()->mSeqMgr.bgmStop(param_0, 0);
|
||||
}
|
||||
|
||||
inline void mDoAud_rainPlay(s32 enable) {
|
||||
g_mEnvSeMgr.startRainSe(enable, 0);
|
||||
}
|
||||
|
||||
inline void mDoAud_mEnvse_framework() {
|
||||
g_mEnvSeMgr.framework();
|
||||
}
|
||||
|
||||
#endif /* M_DO_M_DO_AUDIO_H */
|
||||
|
||||
@@ -11,58 +11,8 @@
|
||||
// Types:
|
||||
//
|
||||
|
||||
struct _GXVtxFmt {};
|
||||
|
||||
struct _GXVtxAttrFmtList {};
|
||||
|
||||
struct _GXTlutSize {};
|
||||
|
||||
struct _GXTlutFmt {};
|
||||
|
||||
struct _GXTexWrapMode {};
|
||||
|
||||
struct _GXTexMapID {};
|
||||
|
||||
struct _GXTexGenType {};
|
||||
|
||||
struct _GXTexGenSrc {};
|
||||
|
||||
struct _GXTexFmt {};
|
||||
|
||||
struct _GXTexFilter {};
|
||||
|
||||
struct _GXTexCoordID {};
|
||||
|
||||
struct _GXTexCacheSize {};
|
||||
|
||||
struct _GXTevStageID {};
|
||||
|
||||
struct _GXTevRegID {};
|
||||
|
||||
struct _GXTevKColorID {};
|
||||
|
||||
struct _GXLightID {};
|
||||
|
||||
struct _GXIndTexStageID {};
|
||||
|
||||
struct _GXIndTexScale {};
|
||||
|
||||
struct _GXIndTexMtxID {};
|
||||
|
||||
struct _GXFogType {};
|
||||
|
||||
struct _GXFogAdjTable {};
|
||||
|
||||
struct _GXCullMode {};
|
||||
|
||||
struct _GXColorS10 {};
|
||||
|
||||
struct _GXColor {};
|
||||
|
||||
struct _GXChannelID {};
|
||||
|
||||
struct _GXAnisotropy {};
|
||||
|
||||
//
|
||||
// Forward References:
|
||||
//
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "JSystem/J3DGraphAnimator/J3DModelData.h"
|
||||
#include "JSystem/J3DGraphBase/J3DPacket.h"
|
||||
#include "JSystem/J3DGraphBase/J3DSys.h"
|
||||
#include "JSystem/J3DGraphBase/J3DGD.h"
|
||||
#include "dol2asm.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
@@ -131,12 +132,6 @@ void J3DShapeMtx::resetMtxLoadCache() {
|
||||
sMtxLoadCache[0] = 0xFFFF;
|
||||
}
|
||||
|
||||
static inline void J3DFifoLoadIndx(u8 cmd, u16 indx, u16 addr) {
|
||||
GFX_FIFO(u8) = cmd;
|
||||
GFX_FIFO(u16) = indx;
|
||||
GFX_FIFO(u16) = addr;
|
||||
}
|
||||
|
||||
/* 803130E4-80313128 30DA24 0044+00 1/0 0/0 0/0 .text loadMtxIndx_PNGP__11J3DShapeMtxCFiUs */
|
||||
void J3DShapeMtx::loadMtxIndx_PNGP(int slot, u16 indx) const {
|
||||
// inlined J3DFifoLoadPosMtxIndx
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "JSystem/J3DGraphBase/J3DTevs.h"
|
||||
|
||||
#include "JSystem/J3DGraphBase/J3DTexture.h"
|
||||
#include "JSystem/J3DGraphBase/J3DGD.h"
|
||||
|
||||
//
|
||||
// Forward References:
|
||||
@@ -83,12 +84,6 @@ J3DSys::J3DSys() {
|
||||
}
|
||||
}
|
||||
|
||||
static inline void J3DFifoLoadIndx(u8 cmd, u16 indx, u16 addr) {
|
||||
GFX_FIFO(u8) = cmd;
|
||||
GFX_FIFO(u16) = indx;
|
||||
GFX_FIFO(u16) = addr;
|
||||
}
|
||||
|
||||
/* 8030FEC0-8030FEE4 30A800 0024+00 0/0 1/1 0/0 .text loadPosMtxIndx__6J3DSysCFiUs */
|
||||
void J3DSys::loadPosMtxIndx(int addr, u16 indx) const {
|
||||
J3DFifoLoadIndx(GX_CMD_LOAD_INDX_A, indx, 0xB000 | ((u16)(addr * 0x0C)));
|
||||
|
||||
@@ -159,10 +159,6 @@ void JPASetLineWidth(JPAEmitterWorkData* work, JPABaseParticle* ptcl) {
|
||||
GXSetLineWidth((u8)(lit_2262[0] * work->mGlobalPtclScl.x * ptcl->mParticleScaleX), GX_TO_ONE);
|
||||
}
|
||||
|
||||
static inline u8 COLOR_MULTI(u32 a, u32 b) {
|
||||
return ((a * (b + 1)) * 0x10000) >> 24;
|
||||
}
|
||||
|
||||
/* 80276B90-80276C2C 2714D0 009C+00 0/0 1/1 0/0 .text JPARegistPrm__FP18JPAEmitterWorkData */
|
||||
void JPARegistPrm(JPAEmitterWorkData* work) {
|
||||
JPABaseEmitter* emtr = work->mpEmtr;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user