Skip to content

Commit

Permalink
take: Decompile most of object.c
Browse files Browse the repository at this point in the history
  • Loading branch information
entriphy committed Jul 14, 2023
1 parent b842f55 commit 05a6810
Show file tree
Hide file tree
Showing 2 changed files with 466 additions and 2 deletions.
13 changes: 12 additions & 1 deletion include/take.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@

#define DECADDR0 ((sceVu0FMATRIX *)0x70000000)
#define DECADDR1 ((sceVu0FMATRIX *)0x70001000)
#define DECADDR2 ((sceVu0FMATRIX *)0x70002000)
#define DECADDR3 ((sceVu0FMATRIX *)0x70003000)
#define ALIGN(x) (u32 *)(((u32)x + 0xF) & ~0xF)
#define ALIGN_ALT(x, y) (u32 *)(((u32)x + y + 0xF) & ~0xF)
#define SETRGBA(x, r, g, b, a) { x.u_u32[0] = r; x.u_u32[1] = g; x.u_u32[2] = b; x.u_u32[3] = a; }
#define SETUV(x, u, v) { x.u_u32[0] = u; x.u_u32[1] = v; x.u_u32[2] = 0; x.u_u32[3] = 0; }
#define SETXYZ(a, x, y, z) { a.u_u32[0] = x; a.u_u32[1] = y; a.u_u32[2] = z; a.u_u32[3] = 0; }
#define SETREG(x, y, z) { *((u64 *)&x) = y; *((u64 *)&x + 1) = z; }
#define QWORD_SET128(x, y) { *(u128 *)&x = y; }
#define QWORD_SET64(x, y, i) { *((u64 *)&x + i) = y; }
#define QWORD_SET32(x, y, i) { *((u32 *)&x + i) = y; }

// Structs

Expand Down Expand Up @@ -353,7 +364,7 @@ typedef struct SFXOBJ { // 0xa0
/* 0x2c */ s32 *SvxAdrs;
/* 0x30 */ s32 *SvxWorkAdrs;
/* 0x34 */ SFXENV *EnvAdrs;
/* 0x38 */ u16 GmsNum;
/* 0x38 */ s16 GmsNum;
/* 0x3c */ f32 scale;
/* 0x40 */ PARTS *pParts;
/* 0x44 */ struct SFXOBJ *pObjSub;
Expand Down
Loading

0 comments on commit 05a6810

Please sign in to comment.