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

View File

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

View File

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

View File

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

View File

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

View File

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