Some fixes (#577)

* Mini improvements

* Fix some splits
This commit is contained in:
dbalatoni13 2025-04-01 02:17:36 +02:00 committed by GitHub
parent 53f19c4f6c
commit 4b0737d49c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 25 additions and 21 deletions

View file

@ -240,7 +240,7 @@ s32 fn_1_4088(unkStruct6 *arg0, u8 arg1, u8 arg2, s32 arg3, unkStruct4 **arg4, s
arg0->unk68 = 0x1E;
}
if ((arg0->unk68 > 0) && (arg5 == 0)) {
arg0->unk68 = (arg0->unk68 - 1);
arg0->unk68--;
}
else {
var_r28 = (arg0->unk64 / 7) < (arg0->unk60 / 7);

View file

@ -1,4 +1,5 @@
#include "game/object.h"
#include "math.h"
void fn_1_68(omObjData *object);

View file

@ -94,6 +94,7 @@ static void TRK_ppc_memcpy(register void* dest, register const void* src,
void TRKRestoreExtended1Block();
void TRKUARTInterruptHandler();
DSError TRKTargetReadInstruction(void* data, u32 start);
static BOOL TRKTargetCheckStep();

View file

@ -2,7 +2,7 @@
.file "targsupp.s"
.text
.balign 4
.balign 16
.fn TRKAccessFile, global
twui r0, 0x0

View file

@ -1394,7 +1394,7 @@ inline s16 Hu3DLightCreateV(LightData *light, Vec *arg0, Vec *arg1, GXColor *arg
light->color = *arg2;
}
s16 Hu3DGLightCreateV(Vec* arg0, Vec* arg1, GXColor* arg2) {
s16 Hu3DGLightCreateV(Vec* pos, Vec* dir, GXColor* color) {
s16 var_r30;
LightData* var_r31;
@ -1409,7 +1409,7 @@ s16 Hu3DGLightCreateV(Vec* arg0, Vec* arg1, GXColor* arg2) {
return -1;
}
Hu3DLightCreateV(var_r31, arg0, arg1, arg2);
Hu3DLightCreateV(var_r31, pos, dir, color);
return var_r30;
}
@ -1894,10 +1894,10 @@ void Hu3DShadowCreate(f32 arg8, f32 arg9, f32 argA) {
Hu3DShadowF = 1;
}
void Hu3DShadowPosSet(Vec* arg0, Vec* arg1, Vec* arg2) {
Hu3DShadowData.unk_14 = *arg0;
Hu3DShadowData.unk_20 = *arg2;
Hu3DShadowData.unk_2C = *arg1;
void Hu3DShadowPosSet(Vec* camPos, Vec* camUp, Vec* camTarget) {
Hu3DShadowData.unk_14 = *camPos;
Hu3DShadowData.unk_20 = *camTarget;
Hu3DShadowData.unk_2C = *camUp;
}
void Hu3DShadowTPLvlSet(f32 arg8) {