mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-08-09 10:32:33 -04:00
Decompile modelSetAnim70
This commit is contained in:
+1
-1
@@ -2533,7 +2533,7 @@ struct prop *func0f020b14(struct prop *prop, struct model *model,
|
||||
|
||||
chr = prop->chr;
|
||||
|
||||
func0001e000(model, func0f01f378);
|
||||
modelSetAnim70(model, func0f01f378);
|
||||
model->chr = chr;
|
||||
model->unk01 = 1;
|
||||
chr->model = model;
|
||||
|
||||
@@ -70,7 +70,7 @@ u32 func0001de98(void);
|
||||
void func0001deb0(struct model *model, f32 speed, f32 startframe);
|
||||
void func0001df04(struct model *model, f32 arg1, f32 arg2);
|
||||
void func0001dfac(struct model *model, f32 arg1, f32 arg2);
|
||||
void func0001e000(struct model *model, void *callback);
|
||||
void modelSetAnim70(struct model *model, void *callback);
|
||||
u32 func0001e018(void);
|
||||
u32 func0001e14c(void);
|
||||
u32 func0001e29c(void);
|
||||
|
||||
+1
-1
@@ -140,7 +140,7 @@ struct anim {
|
||||
/*0x64*/ u32 loopmerge;
|
||||
/*0x68*/ u32 unk68;
|
||||
/*0x6c*/ u32 unk6c;
|
||||
/*0x70*/ u32 unk70;
|
||||
/*0x70*/ void *unk70; // pointer to function
|
||||
/*0x74*/ f32 playspeed;
|
||||
/*0x78*/ u32 newplay;
|
||||
/*0x7c*/ u32 oldplay;
|
||||
|
||||
+6
-10
@@ -4514,16 +4514,12 @@ glabel func0001dfac
|
||||
/* 1dffc: 00000000 */ nop
|
||||
);
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel func0001e000
|
||||
/* 1e000: 8c820020 */ lw $v0,0x20($a0)
|
||||
/* 1e004: 10400002 */ beqz $v0,.L0001e010
|
||||
/* 1e008: 00000000 */ nop
|
||||
/* 1e00c: ac450070 */ sw $a1,0x70($v0)
|
||||
.L0001e010:
|
||||
/* 1e010: 03e00008 */ jr $ra
|
||||
/* 1e014: 00000000 */ nop
|
||||
);
|
||||
void modelSetAnim70(struct model *model, void *callback)
|
||||
{
|
||||
if (model->anim) {
|
||||
model->anim->unk70 = callback;
|
||||
}
|
||||
}
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel func0001e018
|
||||
|
||||
Reference in New Issue
Block a user