Finish overworld.c
This commit is contained in:
+1
-1
@@ -767,7 +767,7 @@ void CleanupLinkRoomState(void)
|
||||
|
||||
void ExitLinkRoom(void)
|
||||
{
|
||||
sub_8057F5C();
|
||||
QueueExitLinkRoomKey();
|
||||
}
|
||||
|
||||
static void Task_EnterCableClubSeat(u8 taskId)
|
||||
|
||||
@@ -1152,7 +1152,7 @@ u8 GetPlayerAvatarGraphicsIdByStateIdAndGender(u8 state, u8 gender)
|
||||
return sPlayerAvatarGfxIds[state][gender];
|
||||
}
|
||||
|
||||
u8 GetHoennLinkPartnerGraphicsIdByGender(u8 gender)
|
||||
u8 GetRSAvatarGraphicsIdByGender(u8 gender)
|
||||
{
|
||||
return sHoennLinkPartnerGfxIds[gender];
|
||||
}
|
||||
|
||||
+7
-7
@@ -201,7 +201,7 @@ void ResetLinkRfuGFLayer(void)
|
||||
}
|
||||
ResetSendDataManager(&Rfu.cmd_8800_sendbuf);
|
||||
RFU_queue_20_70_reset(&Rfu.unk_124);
|
||||
RFU_queue_40_14_reset(&Rfu.unk_9e8);
|
||||
RFU_queue_40_14_reset(&Rfu.sendQueue);
|
||||
CpuFill16(0, gSendCmd, sizeof gSendCmd);
|
||||
CpuFill16(0, gRecvCmds, sizeof gRecvCmds);
|
||||
CpuFill16(0, gLinkPlayers, sizeof gLinkPlayers);
|
||||
@@ -659,7 +659,7 @@ static void sub_80F906C(void)
|
||||
}
|
||||
if (Rfu.unk_c3c == 0)
|
||||
{
|
||||
RFU_queue_40_14_send(&Rfu.unk_9e8, Rfu.unk_4c);
|
||||
RFU_queue_40_14_send(&Rfu.sendQueue, Rfu.unk_4c);
|
||||
RFU_queue_2_14_recv(&Rfu.unk_c1c, Rfu.unk_4c);
|
||||
}
|
||||
}
|
||||
@@ -881,7 +881,7 @@ static bool32 RfuProcessEnqueuedRecvBlock(void)
|
||||
Rfu.unk_cd0--;
|
||||
CallRfuFunc();
|
||||
sub_80F94BC(gSendCmd, sp48);
|
||||
RFU_queue_40_14_recv(&Rfu.unk_9e8, sp48);
|
||||
RFU_queue_40_14_recv(&Rfu.sendQueue, sp48);
|
||||
for (i = 0; i < CMD_LENGTH - 1; i++)
|
||||
gSendCmd[i] = 0;
|
||||
}
|
||||
@@ -909,7 +909,7 @@ static void HandleSendFailure(u8 unused, u32 flags)
|
||||
|
||||
j++;j--; // Needed to match;
|
||||
}
|
||||
RFU_queue_40_14_recv(&Rfu.unk_9e8, sResendBlock8);
|
||||
RFU_queue_40_14_recv(&Rfu.sendQueue, sResendBlock8);
|
||||
Rfu.cmd_8800_sendbuf.failedFlags |= (1 << i);
|
||||
}
|
||||
flags >>= 1;
|
||||
@@ -1853,11 +1853,11 @@ static void RfuCheckErrorStatus(void)
|
||||
gWirelessCommType = 2;
|
||||
SetMainCallback2(CB2_LinkError);
|
||||
gMain.savedCallback = CB2_LinkError;
|
||||
SetLinkErrorFromRfu((Rfu.linkman_msg << 16) | (Rfu.linkman_param[0] << 8) | Rfu.linkman_param[1], Rfu.unk_124.count, Rfu.unk_9e8.count, RfuGetErrorStatus() == 2);
|
||||
SetLinkErrorFromRfu((Rfu.linkman_msg << 16) | (Rfu.linkman_param[0] << 8) | Rfu.linkman_param[1], Rfu.unk_124.count, Rfu.sendQueue.count, RfuGetErrorStatus() == 2);
|
||||
Rfu.errorState = 2;
|
||||
CloseLink();
|
||||
}
|
||||
else if (Rfu.unk_9e8.full == 1 || Rfu.unk_124.full == 1)
|
||||
else if (Rfu.sendQueue.full == 1 || Rfu.unk_124.full == 1)
|
||||
{
|
||||
if (lman.childClockSlave_flag)
|
||||
rfu_LMAN_requestChangeAgbClockMaster();
|
||||
@@ -2851,7 +2851,7 @@ static const char gUnknown_843EEA8[][8] = {
|
||||
|
||||
static u32 sub_80FC44C(void)
|
||||
{
|
||||
return Rfu.unk_9e8.count;
|
||||
return Rfu.sendQueue.count;
|
||||
}
|
||||
|
||||
u32 GetRfuRecvQueueLength(void)
|
||||
|
||||
+3
-3
@@ -184,7 +184,7 @@ void RFU_queue_20_70_reset(struct UnkRfuStruct_2_Sub_124 *queue)
|
||||
queue->full = 0;
|
||||
}
|
||||
|
||||
void RFU_queue_40_14_reset(struct UnkRfuStruct_2_Sub_9e8 *ptr)
|
||||
void RFU_queue_40_14_reset(struct RfuSendQueue *ptr)
|
||||
{
|
||||
s32 i;
|
||||
s32 j;
|
||||
@@ -260,7 +260,7 @@ void RFU_queue_20_70_recv(struct UnkRfuStruct_2_Sub_124 *queue, u8 *data)
|
||||
}
|
||||
}
|
||||
|
||||
void RFU_queue_40_14_recv(struct UnkRfuStruct_2_Sub_9e8 *queue, u8 *data)
|
||||
void RFU_queue_40_14_recv(struct RfuSendQueue *queue, u8 *data)
|
||||
{
|
||||
s32 i;
|
||||
u16 imeBak;
|
||||
@@ -325,7 +325,7 @@ bool8 RFU_queue_20_70_send(struct UnkRfuStruct_2_Sub_124 *queue, u8 *dest)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
bool8 RFU_queue_40_14_send(struct UnkRfuStruct_2_Sub_9e8 *queue, u8 *dest)
|
||||
bool8 RFU_queue_40_14_send(struct RfuSendQueue *queue, u8 *dest)
|
||||
{
|
||||
s32 i;
|
||||
u16 imeBak;
|
||||
|
||||
+1090
-4
File diff suppressed because it is too large
Load Diff
@@ -1883,7 +1883,7 @@ static int sub_81497A8(void)
|
||||
|
||||
static bool32 sub_8149804(void)
|
||||
{
|
||||
return !Rfu.unk_124.count && !Rfu.unk_9e8.count;
|
||||
return !Rfu.unk_124.count && !Rfu.sendQueue.count;
|
||||
}
|
||||
|
||||
static int sub_8149834(u8 *arg0)
|
||||
|
||||
Reference in New Issue
Block a user