Skip to content

Commit

Permalink
take: Decompile object.c
Browse files Browse the repository at this point in the history
  • Loading branch information
entriphy committed Jul 18, 2024
1 parent 599b2db commit 31dc6f9
Show file tree
Hide file tree
Showing 5 changed files with 596 additions and 13 deletions.
1 change: 1 addition & 0 deletions include/take.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#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; }
#define ALIGN_BUF(x) ((void *)(((u32)x + 0xF) & ~0xF))

#pragma endregion Defines

Expand Down
4 changes: 2 additions & 2 deletions src/harada/hr_tchr.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ static void hr_draw_skin(HRVU1OBJ *hrobj, s32 maxmat, sceVu0FMATRIX *LsMat, sceV
FlushCache(0);
}

void hr_draw_tkVU1(HRVU1OBJ *hrobj, s32 maxmat, sceVu0FMATRIX *LsMat, sceVu0FMATRIX *LcLight, sceVu0FMATRIX LColor) {
void hr_draw_tkVU1(HRVU1OBJ *hrobj, s32 maxmat, sceVu0FMATRIX *LsMat, sceVu0FMATRIX *LcLight, sceVu0FMATRIX *LColor) {
ATR_SFXVU1 *pp;

nkMakeUnpackVif1(&p1_packet,LColor, 0x384, 4);
nkMakeUnpackVif1(&p1_packet, *LColor, 0x384, 4);
if (hr_objtype != 1) {
hr_objtype = 1;
hrgms_old = NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/harada/hr_tchr.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ typedef struct { // 0x80
} ATR_SFXVU1D;

extern void hr_decode_tkVU1(HRVU1OBJ *hrobj, u32 *buff, u32 *gms);
extern void hr_draw_tkVU1(HRVU1OBJ *hrobj, s32 maxmat, sceVu0FMATRIX *LsMat, sceVu0FMATRIX *LcLight, sceVu0FMATRIX LColor);
extern void hr_draw_tkVU1(HRVU1OBJ *hrobj, s32 maxmat, sceVu0FMATRIX *LsMat, sceVu0FMATRIX *LcLight, sceVu0FMATRIX *LColor);

#endif
Loading

0 comments on commit 31dc6f9

Please sign in to comment.