mirror of https://github.com/zeldaret/tmc.git
Match sub_08018710
This commit is contained in:
parent
9730543780
commit
801a324a53
|
|
@ -294,26 +294,3 @@ _08018700:
|
|||
.align 2, 0
|
||||
_0801870C: .4byte gUnk_080C9CBC
|
||||
|
||||
thumb_func_start sub_08018710
|
||||
sub_08018710: @ 0x08018710
|
||||
push {r4, r5, r6, lr}
|
||||
adds r6, r0, #0
|
||||
movs r5, #0
|
||||
ldr r4, _08018734 @ =gUnk_080C9CBC
|
||||
_08018718:
|
||||
ldrb r0, [r4, #3]
|
||||
cmp r0, #8
|
||||
bne _0801872A
|
||||
ldrb r1, [r4, #4]
|
||||
cmp r6, r1
|
||||
beq _0801872A
|
||||
adds r0, r5, #0
|
||||
bl sub_08018738
|
||||
_0801872A:
|
||||
adds r4, #8
|
||||
adds r5, #1
|
||||
cmp r5, #0x64
|
||||
bls _08018718
|
||||
pop {r4, r5, r6, pc}
|
||||
.align 2, 0
|
||||
_08018734: .4byte gUnk_080C9CBC
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include "common.h"
|
||||
#include "flags.h"
|
||||
#include "player.h"
|
||||
#include "kinstone.h"
|
||||
|
||||
extern EntityData gUnk_080FEC28[];
|
||||
extern EntityData gUnk_080FEBE8[];
|
||||
|
|
@ -23,6 +24,18 @@ void sub_08018A58(int);
|
|||
void sub_08018B50(int);
|
||||
void sub_080189EC(int);
|
||||
void sub_0801876C(int, int);
|
||||
void sub_08018738(u32, int);
|
||||
|
||||
void sub_08018710(u32 param_1) {
|
||||
struct_080C9CBC* psVar1;
|
||||
u32 i;
|
||||
|
||||
for (i = 0, psVar1 = gUnk_080C9CBC; i < 0x65; psVar1++, i++) {
|
||||
if ((psVar1->unk3 == 8) && (param_1 != psVar1->evt_type)) {
|
||||
sub_08018738(i, psVar1->evt_type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void sub_08018738(u32 param_1, int param_2) {
|
||||
struct_080FE320* ptr = &gUnk_080FE320[param_2];
|
||||
|
|
|
|||
Loading…
Reference in New Issue