Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unk 020183 f0 #345

Merged
merged 12 commits into from
Oct 30, 2024
Merged

Unk 020183 f0 #345

merged 12 commits into from
Oct 30, 2024

Conversation

PikalaxALT
Copy link
Collaborator

No description provided.

@PikalaxALT PikalaxALT marked this pull request as ready for review October 20, 2024 13:34
@PikalaxALT PikalaxALT self-assigned this Oct 20, 2024
@@ -83,7 +85,7 @@ typedef struct BerryPotsAppData {
u16 totalBerryQuantity;
u16 totalMulchQuantity;
BgConfig *bgConfig;
void *unk8C;
TouchscreenListMenuSpawner *menuSpawner;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is spawner really the best term here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm open to suggestions

include/mail_misc.h Outdated Show resolved Hide resolved
MENU_INPUT_STATE_TOUCH,
} MenuInputState;

typedef struct MenuInputStateMgr {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this a struct and can you get it to match without it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

think about it, does it really make sense to have a getter and a setter for a BOOL?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

considering this is gf, yes

#include "options.h"
#include "overlay_manager.h"

typedef struct OptionsApp_Args {
u32 unk0;
Options *options;
BOOL *unk8;
MenuInputStateMgr *unk8;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unk8 -> menuInputStateMgr
Also if Mgr = Manager we should write it as Man (shorthand) or straight up in long hand

@@ -11,7 +11,7 @@ typedef struct UnkStruct_ov55_021E5B08 {
u16 unk0;
u8 mailMessageIdx;
Options *options;
u32 *unk8;
MenuInputStateMgr *unk8;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name unk8

src/party_menu.c Outdated
@@ -91,7 +91,7 @@ static BOOL PartyMenu_HandleDpadInput(PartyMenu *partyMenu);
static u8 PartyMenu_GetSelectionInDirection(PartyMenu *partyMenu, u8 *px, u8 *py, u8 direction);
static u8 PartyMenu_GetNewSelectionFromTable(PartyMenu *partyMenu, u8 *px, u8 *py, const u8 *table);
static void sub_0207AC20(PartyMenu *partyMenu);
static int sub_0207AC70(PartyMenu *partyMenu, BOOL a1);
static int sub_0207AC70(PartyMenu *partyMenu, MenuInputState a1);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name a1

src/party_menu.c Outdated
@@ -1443,7 +1443,7 @@ static void sub_0207AC20(PartyMenu *partyMenu) {
}
}

static int sub_0207AC70(PartyMenu *partyMenu, BOOL a1) {
static int sub_0207AC70(PartyMenu *partyMenu, MenuInputState a1) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name a1

src/party_menu.c Outdated
@@ -2712,9 +2712,9 @@ void PartyMenu_DeleteContextMenuAndList(PartyMenu *partyMenu) {
ListMenuItems_Delete(partyMenu->listMenuItems);
}

void sub_0207CB3C(PartyMenu *partyMenu, BOOL a1) {
void sub_0207CB3C(PartyMenu *partyMenu, MenuInputState a1) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name a1

@@ -497,8 +497,8 @@ static BOOL TouchSaveApp_ShouldPrintAlternateSavingMessage(TouchSaveAppData *dat
return Save_NumModifiedPCBoxesIsMany(data->fieldSystem->saveData);
}

static void ov30_0225DC00(BOOL *a0, u32 a1) {
sub_02018410(a0, a1);
static void ov30_0225DC00(MenuInputStateMgr *stateMgr, MenuInputState state) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can prolly name this as just a static version of set state

static void TouchscreenListMenu_PlaySE(TouchscreenListMenu *menu, u16 sndseq);
static void TouchscreenListMenu_InvokeCallback(TouchscreenListMenu *menu, int a1);

TouchscreenListMenuSpawner *TouchscreenListMenuSpawner_Create(HeapID heapId, PaletteData *paletteData) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally just rename spawner to manager and remove the current manager as a struct

@adrienntindall adrienntindall merged commit 941ca47 into pret:master Oct 30, 2024
1 check passed
github-actions bot pushed a commit that referenced this pull request Oct 30, 2024
github-actions bot pushed a commit that referenced this pull request Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants