mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
through sub_8010198
This commit is contained in:
parent
b8af0f011d
commit
b8ad1a0fc4
@ -5,103 +5,6 @@
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start sub_8010100
|
||||
sub_8010100: @ 8010100
|
||||
push {lr}
|
||||
ldr r1, =gUnknown_03005000
|
||||
adds r1, 0x5A
|
||||
strb r0, [r1]
|
||||
movs r0, 0xA1
|
||||
lsls r0, 8
|
||||
bl sub_800FD14
|
||||
movs r0, 0x1
|
||||
pop {r1}
|
||||
bx r1
|
||||
.pool
|
||||
thumb_func_end sub_8010100
|
||||
|
||||
thumb_func_start sub_801011C
|
||||
sub_801011C: @ 801011C
|
||||
push {lr}
|
||||
bl rfu_clearAllSlot
|
||||
bl sub_800C048
|
||||
ldr r1, =gReceivedRemoteLinkPlayers
|
||||
movs r0, 0
|
||||
strb r0, [r1]
|
||||
ldr r2, =gUnknown_03005000
|
||||
adds r3, r2, 0
|
||||
adds r3, 0xEF
|
||||
movs r1, 0
|
||||
movs r0, 0x1
|
||||
strb r0, [r3]
|
||||
str r1, [r2]
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_801011C
|
||||
|
||||
thumb_func_start sub_8010148
|
||||
sub_8010148: @ 8010148
|
||||
push {lr}
|
||||
ldr r0, =gUnknown_03007890
|
||||
ldr r0, [r0]
|
||||
ldrb r1, [r0, 0x2]
|
||||
ldrb r0, [r0, 0x3]
|
||||
orrs r0, r1
|
||||
bl rfu_REQ_disconnect
|
||||
bl rfu_waitREQComplete
|
||||
bl sub_801011C
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8010148
|
||||
|
||||
thumb_func_start sub_8010168
|
||||
sub_8010168: @ 8010168
|
||||
push {r4,lr}
|
||||
ldr r4, =gUnknown_03005000
|
||||
ldrb r0, [r4, 0xC]
|
||||
cmp r0, 0
|
||||
bne _08010188
|
||||
bl sub_800D630
|
||||
ldr r0, =0x00000ce4
|
||||
adds r1, r4, r0
|
||||
movs r0, 0x2
|
||||
strb r0, [r1]
|
||||
b _0801018C
|
||||
.pool
|
||||
_08010188:
|
||||
ldr r0, =sub_8010148
|
||||
str r0, [r4]
|
||||
_0801018C:
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8010168
|
||||
|
||||
thumb_func_start sub_8010198
|
||||
sub_8010198: @ 8010198
|
||||
push {lr}
|
||||
bl sub_800D630
|
||||
ldr r2, =gUnknown_03005000
|
||||
ldr r0, =0x00000ce4
|
||||
adds r1, r2, r0
|
||||
movs r0, 0x1
|
||||
strb r0, [r1]
|
||||
ldr r0, =gUnknown_03007890
|
||||
ldr r1, [r0]
|
||||
ldrb r0, [r1, 0x2]
|
||||
ldrb r1, [r1, 0x3]
|
||||
orrs r0, r1
|
||||
ldr r1, =0x00000ce3
|
||||
adds r2, r1
|
||||
strb r0, [r2]
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8010198
|
||||
|
||||
thumb_func_start sub_80101CC
|
||||
sub_80101CC: @ 80101CC
|
||||
push {r4,r5,lr}
|
||||
|
@ -161,7 +161,8 @@ struct UnkRfuStruct_2 {
|
||||
/* 0x0e4 */ u8 unk_e4[5];
|
||||
/* 0x0e9 */ u8 unk_e9[5];
|
||||
/* 0x0ee */ vu8 unk_ee;
|
||||
/* 0x0ef */ u8 filler_ef[3];
|
||||
/* 0x0ef */ u8 unk_ef;
|
||||
/* 0x0f0 */ u8 filler_f0[2];
|
||||
/* 0x0f2 */ u16 unk_f2[6];
|
||||
/* 0x0fe */ u8 filler_fe[2];
|
||||
/* 0x100 */ u16 unk_100;
|
||||
|
@ -3846,3 +3846,44 @@ void rfufunc_80FA020(void)
|
||||
else
|
||||
gUnknown_03005000.unk_00 = NULL;
|
||||
}
|
||||
|
||||
bool8 sub_8010100(u8 a0)
|
||||
{
|
||||
gUnknown_03005000.unk_5a = a0;
|
||||
sub_800FD14(0xa100);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void sub_801011C(void)
|
||||
{
|
||||
rfu_clearAllSlot();
|
||||
sub_800C048();
|
||||
gReceivedRemoteLinkPlayers = 0;
|
||||
gUnknown_03005000.unk_ef = 1;
|
||||
gUnknown_03005000.unk_00 = NULL;
|
||||
}
|
||||
|
||||
void sub_8010148(void)
|
||||
{
|
||||
rfu_REQ_disconnect(gUnknown_03007890->unk_02 | gUnknown_03007890->unk_03);
|
||||
rfu_waitREQComplete();
|
||||
sub_801011C();
|
||||
}
|
||||
|
||||
void sub_8010168(void)
|
||||
{
|
||||
if (gUnknown_03005000.unk_0c == 0)
|
||||
{
|
||||
sub_800D630();
|
||||
gUnknown_03005000.unk_ce4 = 2;
|
||||
}
|
||||
else
|
||||
gUnknown_03005000.unk_00 = sub_8010148;
|
||||
}
|
||||
|
||||
void sub_8010198(void)
|
||||
{
|
||||
sub_800D630();
|
||||
gUnknown_03005000.unk_ce4 = 1;
|
||||
gUnknown_03005000.unk_ce3 = gUnknown_03007890->unk_02 | gUnknown_03007890->unk_03;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user