diff options
author | red031000 <rubenru09@aol.com> | 2020-07-29 01:23:41 +0100 |
---|---|---|
committer | red031000 <rubenru09@aol.com> | 2020-07-29 01:23:41 +0100 |
commit | 1f1fd07d7b36b7ad37af5cebc300f53482875672 (patch) | |
tree | 8748adcdeb4eabd7dda0f7eb7b045bb01ff5a1e1 /arm9/modules | |
parent | d7d85bf530a22e0078f6f8778f40686533d0dac1 (diff) |
document anim func
Diffstat (limited to 'arm9/modules')
-rw-r--r-- | arm9/modules/63/asm/mod63_021D8890.s | 2 | ||||
-rw-r--r-- | arm9/modules/63/include/mod63_021DB450.h | 6 | ||||
-rw-r--r-- | arm9/modules/63/src/mod63_021DB450.c | 12 |
3 files changed, 10 insertions, 10 deletions
diff --git a/arm9/modules/63/asm/mod63_021D8890.s b/arm9/modules/63/asm/mod63_021D8890.s index cd27e9bc..fb0726a4 100644 --- a/arm9/modules/63/asm/mod63_021D8890.s +++ b/arm9/modules/63/asm/mod63_021D8890.s @@ -1540,7 +1540,7 @@ MOD63_021D9498: ; 0x021D9498 add r0, #0x3b strb r1, [r0] ldr r0, [r5, #0x4c] - bl MOD63_021DB49C + bl Title_SetupMonAnimationSprites ldr r0, [r5, #0xc] mov r1, #1 str r0, [r5, #0x40] diff --git a/arm9/modules/63/include/mod63_021DB450.h b/arm9/modules/63/include/mod63_021DB450.h index 9d8df284..5f3aaa03 100644 --- a/arm9/modules/63/include/mod63_021DB450.h +++ b/arm9/modules/63/include/mod63_021DB450.h @@ -3,10 +3,10 @@ #include "global.h" -typedef struct UnkStruct63_021DB49C +typedef struct UnkStruct63_021DB49C //animation struct? { u32 field_00; - u32 field_04[3]; + u32 field_04[3]; //animation array? u32 field_10; void * field_14; void * field_18; @@ -29,6 +29,6 @@ typedef struct UnkStruct63_021DBEF0 u32 MOD63_021DB450(u32 param0, u32 param1); u32 MOD63_021DB474(u32 param0, u32 param1); u32 MOD63_021DB498(void); -void MOD63_021DB49C(struct UnkStruct63_021DB49C * arg0); +void Title_SetupMonAnimationSprites(struct UnkStruct63_021DB49C * arg0); #endif //POKEDIAMOND_MOD63_021DB450_H diff --git a/arm9/modules/63/src/mod63_021DB450.c b/arm9/modules/63/src/mod63_021DB450.c index ce641d47..9593d612 100644 --- a/arm9/modules/63/src/mod63_021DB450.c +++ b/arm9/modules/63/src/mod63_021DB450.c @@ -55,16 +55,16 @@ THUMB_FUNC u32 MOD63_021DB498(void) return 32; } -THUMB_FUNC void MOD63_021DB49C(struct UnkStruct63_021DB49C * arg0) +THUMB_FUNC void Title_SetupMonAnimationSprites(struct UnkStruct63_021DB49C * arg0) { struct UnkStruct63_021DB49C_2 sp1C; - int sp10[3] = {SPECIES_TURTWIG, SPECIES_CHIMCHAR, SPECIES_PIPLUP}; + int introMonArray[3] = {SPECIES_TURTWIG, SPECIES_CHIMCHAR, SPECIES_PIPLUP}; arg0->field_00 = FUN_02006D98(76); - for (u8 i = 0; i < 3; i++) + for (u8 i = 0; i < 3; i++) //some kind of animation assignment TODO: investigate further { - FUN_02068C00(&sp1C, (u16)sp10[i], 0, 2, 0, 0, 0); + FUN_02068C00(&sp1C, (u16)introMonArray[i], 0, 2, 0, 0, 0); arg0->field_04[i] = FUN_020073A0(arg0->field_00, &sp1C, MOD63_021DBEF0[i].field_00, MOD63_021DBEF0[i].field_04, 0x3FF, i, 0, 0); FUN_02007558(arg0->field_04[i], 6, 1); } @@ -77,8 +77,8 @@ THUMB_FUNC void MOD63_021DB49C(struct UnkStruct63_021DB49C * arg0) FUN_02013194(arg0->field_18, FUN_0201318C(0x3D, 4, 0x4C), 10, 1); } -const void * const MOD63_021DBED8 = MOD63_021DB720; -const void * const MOD63_021DBEDC[5] = { MOD63_021DB784, MOD63_021DB7D0, MOD63_021DB838, MOD63_021DB884, MOD63_021DB8E8 }; +void * const MOD63_021DBED8 = MOD63_021DB720; +void * const MOD63_021DBEDC[5] = { MOD63_021DB784, MOD63_021DB7D0, MOD63_021DB838, MOD63_021DB884, MOD63_021DB8E8 }; const struct UnkStruct63_021DBEF0 MOD63_021DBEF0[3] = { {0x080, 0xC0}, |