Add debug controller to all controllers

This commit is contained in:
DizzyEggg 2018-09-18 21:51:10 +02:00
parent add1f4910c
commit facd838112
6 changed files with 42 additions and 0 deletions

View File

@ -95,6 +95,7 @@ static void LinkOpponentHandleBattleAnimation(void);
static void LinkOpponentHandleLinkStandbyMsg(void);
static void LinkOpponentHandleResetActionMoveSelection(void);
static void LinkOpponentHandleCmd55(void);
static void LinkOpponentHandleBattleDebug(void);
static void nullsub_92(void);
static void LinkOpponentBufferRunCommand(void);
@ -167,6 +168,7 @@ static void (*const sLinkOpponentBufferCommands[CONTROLLER_CMDS_COUNT])(void) =
LinkOpponentHandleLinkStandbyMsg,
LinkOpponentHandleResetActionMoveSelection,
LinkOpponentHandleCmd55,
LinkOpponentHandleBattleDebug,
nullsub_92
};
@ -1860,6 +1862,11 @@ static void LinkOpponentHandleCmd55(void)
gBattlerControllerFuncs[gActiveBattler] = sub_80587B0;
}
static void LinkOpponentHandleBattleDebug(void)
{
LinkOpponentBufferExecCompleted();
}
static void nullsub_92(void)
{
}

View File

@ -94,6 +94,7 @@ static void LinkPartnerHandleBattleAnimation(void);
static void LinkPartnerHandleLinkStandbyMsg(void);
static void LinkPartnerHandleResetActionMoveSelection(void);
static void LinkPartnerHandleCmd55(void);
static void LinkPartnerHandleBattleDebug(void);
static void nullsub_113(void);
static void LinkPartnerBufferRunCommand(void);
@ -165,6 +166,7 @@ static void (*const sLinkPartnerBufferCommands[CONTROLLER_CMDS_COUNT])(void) =
LinkPartnerHandleLinkStandbyMsg,
LinkPartnerHandleResetActionMoveSelection,
LinkPartnerHandleCmd55,
LinkPartnerHandleBattleDebug,
nullsub_113
};
@ -1691,6 +1693,11 @@ static void LinkPartnerHandleCmd55(void)
gBattlerControllerFuncs[gActiveBattler] = sub_80587B0;
}
static void LinkPartnerHandleBattleDebug(void)
{
LinkPartnerBufferExecCompleted();
}
static void nullsub_113(void)
{
}

View File

@ -95,6 +95,7 @@ static void PlayerPartnerHandleBattleAnimation(void);
static void PlayerPartnerHandleLinkStandbyMsg(void);
static void PlayerPartnerHandleResetActionMoveSelection(void);
static void PlayerPartnerHandleCmd55(void);
static void PlayerPartnerHandleBattleDebug(void);
static void nullsub_128(void);
static void PlayerPartnerBufferRunCommand(void);
@ -172,6 +173,7 @@ static void (*const sPlayerPartnerBufferCommands[CONTROLLER_CMDS_COUNT])(void) =
PlayerPartnerHandleLinkStandbyMsg,
PlayerPartnerHandleResetActionMoveSelection,
PlayerPartnerHandleCmd55,
PlayerPartnerHandleBattleDebug,
nullsub_128
};
@ -1933,6 +1935,11 @@ static void PlayerPartnerHandleCmd55(void)
gBattlerControllerFuncs[gActiveBattler] = sub_80587B0;
}
static void PlayerPartnerHandleBattleDebug(void)
{
PlayerPartnerBufferExecCompleted();
}
static void nullsub_128(void)
{
}

View File

@ -97,6 +97,7 @@ static void RecordedOpponentHandleBattleAnimation(void);
static void RecordedOpponentHandleLinkStandbyMsg(void);
static void RecordedOpponentHandleResetActionMoveSelection(void);
static void RecordedOpponentHandleCmd55(void);
static void RecordedOpponentHandleBattleDebug(void);
static void nullsub_119(void);
static void RecordedOpponentBufferRunCommand(void);
@ -169,6 +170,7 @@ static void (*const sRecordedOpponentBufferCommands[CONTROLLER_CMDS_COUNT])(void
RecordedOpponentHandleLinkStandbyMsg,
RecordedOpponentHandleResetActionMoveSelection,
RecordedOpponentHandleCmd55,
RecordedOpponentHandleBattleDebug,
nullsub_119
};
@ -1797,6 +1799,11 @@ static void RecordedOpponentHandleCmd55(void)
gBattlerControllerFuncs[gActiveBattler] = sub_80587B0;
}
static void RecordedOpponentHandleBattleDebug(void)
{
RecordedOpponentBufferExecCompleted();
}
static void nullsub_119(void)
{
}

View File

@ -87,6 +87,7 @@ static void SafariHandleBattleAnimation(void);
static void SafariHandleLinkStandbyMsg(void);
static void SafariHandleResetActionMoveSelection(void);
static void SafariHandleCmd55(void);
static void SafariHandleBattleDebug(void);
static void nullsub_115(void);
static void SafariBufferRunCommand(void);
@ -151,6 +152,7 @@ static void (*const sSafariBufferCommands[CONTROLLER_CMDS_COUNT])(void) =
SafariHandleLinkStandbyMsg,
SafariHandleResetActionMoveSelection,
SafariHandleCmd55,
SafariHandleBattleDebug,
nullsub_115
};
@ -691,6 +693,11 @@ static void SafariHandleCmd55(void)
gBattlerControllerFuncs[gActiveBattler] = sub_81595E4;
}
static void SafariHandleBattleDebug(void)
{
SafariBufferExecCompleted();
}
static void nullsub_115(void)
{
}

View File

@ -97,6 +97,7 @@ static void WallyHandleBattleAnimation(void);
static void WallyHandleLinkStandbyMsg(void);
static void WallyHandleResetActionMoveSelection(void);
static void WallyHandleCmd55(void);
static void WallyHandleBattleDebug(void);
static void nullsub_118(void);
static void WallyBufferRunCommand(void);
@ -166,6 +167,7 @@ static void (*const sWallyBufferCommands[CONTROLLER_CMDS_COUNT])(void) =
WallyHandleLinkStandbyMsg,
WallyHandleResetActionMoveSelection,
WallyHandleCmd55,
WallyHandleBattleDebug,
nullsub_118
};
@ -1564,6 +1566,11 @@ static void WallyHandleCmd55(void)
gBattlerControllerFuncs[gActiveBattler] = sub_80587B0;
}
static void WallyHandleBattleDebug(void)
{
WallyBufferExecCompleted();
}
static void nullsub_118(void)
{
}