core2/code_B9090.c done

This commit is contained in:
Banjo Kazooie
2022-08-06 18:58:07 -05:00
parent a0abcc1dce
commit 686d69b9a2
8 changed files with 169 additions and 15 deletions

View File

@@ -50,6 +50,8 @@ typedef void (* GenMethod_5)(s32, s32, s32, s32, s32);
out##_z = a##_z op b##_z;\
}
#define LENGTH_SQ_VEC3F(v) (v[0]*v[0] + v[1]*v[1] + v[2]*v[2])
//known it uses "+" instead of "|" for fight/code_9D40.c, func_8039049C, case 6
#define FUNC_8030E624(sfx_e, vol, sample_rate) func_8030E624(\
_SHIFTL((vol*1023), 21, 11) + _SHIFTL(sample_rate >> 5, 11, 10) + _SHIFTL(sfx_e, 0, 11)\

View File

@@ -877,4 +877,21 @@ typedef struct {
struct actor_marker_s *unk18;
}Struct81s;
typedef struct {
enum actor_e actor_id;
struct actor_marker_s *marker;
f32 position[3];
void (*unk14)(struct actor_s *, struct actor_marker_s *);
struct actor_marker_s *unk18;
}Struct82s;
typedef struct {
f32 unk0;
f32 unk4;
f32 unk8[3];
s16 unk14[3];
u8 unk1A;
u8 pad1B[1];
}Struct83s;
#endif