summaryrefslogtreecommitdiff
path: root/src/berry_crush.c
diff options
context:
space:
mode:
authorKaz <kazbloxmc@gmail.com>2020-09-16 19:27:55 -0400
committerKaz <kazbloxmc@gmail.com>2020-09-16 19:36:30 -0400
commit171154a0975b1c734b5b2069f1bdb3ca2bab26f2 (patch)
treef63da6a42d589c489a096d84080f0d7ea1ce6ce4 /src/berry_crush.c
parent327dd877b5b9cd76fcd4747dea755395aacc6157 (diff)
Convert to -g; will be required for eliminating fakematches.
Diffstat (limited to 'src/berry_crush.c')
-rwxr-xr-xsrc/berry_crush.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/berry_crush.c b/src/berry_crush.c
index 744389ba7..3554644f2 100755
--- a/src/berry_crush.c
+++ b/src/berry_crush.c
@@ -202,7 +202,7 @@ struct BerryCrushGame
static void VBlankCB(void);
static void MainCB(void);
static void MainTask(u8);
-static void InitGame(struct BerryCrushGame *);
+static void ParseName_Options(struct BerryCrushGame *);
void sub_8022BEC(u16, u8, u8 *);
static void BerryCrush_SetPaletteFadeParams(u8 *, bool8, u32, s8, u8, u8, u16);
static int sub_8021450(struct BerryCrushGame *);
@@ -880,7 +880,7 @@ void StartBerryCrush(MainCallback callback)
gBerryCrushGame->unk0 = callback;
gBerryCrushGame->unk8 = multiplayerId;
gBerryCrushGame->unk9 = playerCount;
- InitGame(gBerryCrushGame);
+ ParseName_Options(gBerryCrushGame);
gBerryCrushGame->unk12 = 1;
gBerryCrushGame->unkE = 1;
gBerryCrushGame->unkF = 6;
@@ -907,23 +907,23 @@ static void GetBerryFromBag(void)
SetMainCallback2(MainCB);
}
-static void InitMainTask(void)
+static void BerryCrush_SetupMainTask(void)
{
DestroyTask(gBerryCrushGame->mainTask);
ChooseBerryForMachine(GetBerryFromBag);
}
-static void SetVBlankCB(void)
+static void BerryCrush_SetVBlankCB(void)
{
SetVBlankCallback(VBlankCB);
}
-static void InitVBlankCB(void)
+static void BerryCrush_InitVBlankCB(void)
{
SetVBlankCallback(NULL);
}
-static void SaveResults(void)
+static void BerryCrush_SaveResults(void)
{
u32 var0, var1;
@@ -1002,7 +1002,7 @@ static void MainTask(u8 taskId)
+ offsetof(struct BerryCrushGame_68_x, unk30) \
+ sizeof(struct BerryCrushGame_Player) * (i))
-static void InitGame(struct BerryCrushGame *arg0)
+static void ParseName_Options(struct BerryCrushGame *arg0)
{
u8 i = 0;
@@ -1028,7 +1028,7 @@ static void InitGame(struct BerryCrushGame *arg0)
}
}
-// TODO: Everything from here on is likely in a separate file.
+// TODO: Everything from here on is likely in separate files.
s32 InitBerryCrushDisplay(void)
{
struct BerryCrushGame *game = GetBerryCrushGame();
@@ -1118,7 +1118,7 @@ s32 InitBerryCrushDisplay(void)
ShowBg(2);
ShowBg(3);
SetGpuRegBits(REG_OFFSET_DISPCNT, DISPCNT_OBJ_ON | DISPCNT_OBJ_1D_MAP);
- SetVBlankCB();
+ BerryCrush_SetVBlankCB();
game->unkC = 0;
return 1;
}
@@ -2155,7 +2155,7 @@ static u32 sub_8022EAC(struct BerryCrushGame *r4, u8 *r5)
static u32 sub_8022F04(struct BerryCrushGame *r0, __attribute__((unused)) u8 *r1)
{
r0->unk4 = NULL;
- SetMainCallback2(InitMainTask);
+ SetMainCallback2(BerryCrush_SetupMainTask);
return 0;
}
@@ -2942,7 +2942,7 @@ static u32 sub_8023CAC(struct BerryCrushGame *r7, __attribute__((unused)) u8 *r1
r7->unk10 = 0;
break;
case 7:
- SaveResults();
+ BerryCrush_SaveResults();
sub_8022BEC(18, 1, NULL);
r7->unk12 = 11;
r7->unkC = 0;