rfu_REQ_sendData_wrapper

This commit is contained in:
PikalaxALT
2017-11-17 00:05:28 -05:00
parent 3c20c54b83
commit 8377b00662
5 changed files with 59 additions and 58 deletions

View File

@@ -3,31 +3,7 @@
#include "librfu.h"
struct RfuUnk1
{
u8 unk_0[0x14];
u32 unk_14;
u32 unk_18;
struct RfuIntrStruct unk_1c;
};
struct RfuUnk2
{
u8 unk_0[0x68];
u32 unk_68;
u32 unk_6c;
u8 unk_70[0x70];
};
struct RfuUnk3
{
u32 unk_0;
u32 unk_4;
u8 unk_8[0xD4];
u32 unk_dc;
};
extern u32 *gUnknown_03007890;
extern struct RfuUnk5 *gUnknown_03007890;
extern u32 *gUnknown_03007894;
extern struct RfuUnk3* gUnknown_03007898;
extern struct RfuUnk2* gUnknown_03007880[4];

View File

@@ -2447,7 +2447,6 @@ void ResetRecvBuffer(void)
u32 sub_800BEC0(void)
{
u32 r4;
u8 r2;
r4 = rfu_REQBN_softReset_and_checkID();
if (r4 == 0x8001)
@@ -2467,3 +2466,22 @@ u32 sub_800BEC0(void)
sub_800D610();
return r4;
}
void rfu_REQ_sendData_wrapper(u8 r2)
{
u8 val;
if (!gUnknown_03007890->unk_00)
{
val = gUnknown_03004140.unk_02;
r2 = 0;
if (val == 1)
{
r2 = 1;
}
}
else
{
gUnknown_03004140.unk_03 = 0;
}
rfu_REQ_sendData(r2);
}