Streamline pointer notation (#2139)

This commit is contained in:
Bassoonian
2025-05-16 13:04:44 +02:00
committed by GitHub
parent 74bf498aaa
commit 16357c7e29
89 changed files with 406 additions and 406 deletions
+10 -10
View File
@@ -1630,7 +1630,7 @@ static void CB2_TransitionToCableClub(void)
static void CreateTrainerCardInBuffer(void *dest, bool32 setWonderCard)
{
struct TrainerCard * card = (struct TrainerCard *)dest;
struct TrainerCard *card = (struct TrainerCard *)dest;
TrainerCard_GenerateCardForLinkPlayer(card);
// Below field is re-used, to be read by Task_ExchangeCards
@@ -3496,10 +3496,10 @@ static void Task_SearchForChildOrParent(u8 taskId)
}
}
static u8 CreateTask_SearchForChildOrParent(struct RfuIncomingPlayerList * parentList, struct RfuIncomingPlayerList * childList, u32 linkGroup)
static u8 CreateTask_SearchForChildOrParent(struct RfuIncomingPlayerList *parentList, struct RfuIncomingPlayerList *childList, u32 linkGroup)
{
u8 taskId = CreateTask(Task_SearchForChildOrParent, 0);
struct RfuIncomingPlayerList ** data = (void *)gTasks[taskId].data;
struct RfuIncomingPlayerList **data = (void *)gTasks[taskId].data;
data[0] = parentList;
data[1] = childList;
gTasks[taskId].data[4] = linkGroup;
@@ -3563,7 +3563,7 @@ static void Task_ListenForWonderDistributor(u8 taskId)
}
}
static u8 CreateTask_ListenForCompatiblePartners(struct RfuIncomingPlayerList * list, u32 linkGroup)
static u8 CreateTask_ListenForCompatiblePartners(struct RfuIncomingPlayerList *list, u32 linkGroup)
{
u8 taskId = CreateTask(Task_ListenForCompatiblePartners, 0);
struct RfuIncomingPlayerList **oldList = (void *) gTasks[taskId].data;
@@ -3572,7 +3572,7 @@ static u8 CreateTask_ListenForCompatiblePartners(struct RfuIncomingPlayerList *
return taskId;
}
static u8 CreateTask_ListenForWonderDistributor(struct RfuIncomingPlayerList * list, u32 linkGroup)
static u8 CreateTask_ListenForWonderDistributor(struct RfuIncomingPlayerList *list, u32 linkGroup)
{
u8 taskId = CreateTask(Task_ListenForWonderDistributor, 0);
struct RfuIncomingPlayerList **oldList = (void *) gTasks[taskId].data;
@@ -3650,7 +3650,7 @@ static s8 UnionRoomHandleYesNo(u8 *state, bool32 noDraw)
return MENU_NOTHING_CHOSEN;
}
static u8 CreateTradeBoardWindow(const struct WindowTemplate * template)
static u8 CreateTradeBoardWindow(const struct WindowTemplate *template)
{
u8 windowId = AddWindow(template);
DrawStdWindowFrame(windowId, FALSE);
@@ -3880,7 +3880,7 @@ static void ClearIncomingPlayerList(struct RfuIncomingPlayerList *list, u8 count
}
// Checks player name and trainer id, returns TRUE if they are not the same
static bool8 ArePlayersDifferent(struct RfuPlayerData* player1, const struct RfuPlayerData* player2)
static bool8 ArePlayersDifferent(struct RfuPlayerData *player1, const struct RfuPlayerData *player2)
{
s32 i;
@@ -4044,7 +4044,7 @@ static s32 UnionRoomGetPlayerInteractionResponse(struct RfuPlayerList *list, boo
{
bool32 metBefore;
struct RfuPlayer * player = &list->players[playerIdx];
struct RfuPlayer *player = &list->players[playerIdx];
if (!player->rfu.data.startedActivity && !overrideGender)
{
@@ -4094,7 +4094,7 @@ static void ItemPrintFunc_EmptyList(u8 windowId, u32 itemId, u8 y)
{
}
static void TradeBoardPrintItemInfo(u8 windowId, u8 y, struct RfuGameData * data, const u8 * playerName, u8 colorIdx)
static void TradeBoardPrintItemInfo(u8 windowId, u8 y, struct RfuGameData *data, const u8 *playerName, u8 colorIdx)
{
u8 levelStr[4];
u16 species = data->tradeSpecies;
@@ -4146,7 +4146,7 @@ static void TradeBoardListMenuItemPrintFunc(u8 windowId, u32 itemId, u8 y)
}
}
static s32 GetIndexOfNthTradeBoardOffer(struct RfuPlayer * players, s32 n)
static s32 GetIndexOfNthTradeBoardOffer(struct RfuPlayer *players, s32 n)
{
s32 i;
s32 j = 0;