mirror of
https://github.com/pret/pmd-sky.git
synced 2026-09-28 13:24:02 -05:00
Second cleanup batch. Eight files are now gone: asm/overlay_29_022E1618.s asm/main_0202B530.s asm/overlay_29_022DC65C.s asm/main_0205EC38.s asm/overlay_29_0232124C.s asm/main_02051788.s asm/main_02042B20.s asm/main_02065BD8.s main.lsf falls from 1175 objects to 1167. Twenty-two functions matched across eleven files, but only seventeen land. FixedPoint64ToInt, GetSpriteSize and RemoveItemFromKecleonShop1 did not match, and their files therefore cannot be emptied; landing their already-matched siblings would have converted two two-function files into two fresh single-function fragments, so those two are held back as well. This batch reduces the fragment count without creating any. Three declarations follow the tree rather than the scratch: ov29_0232119C takes struct entity * as its first parameter, ov29_023538B4 is already declared as a u8 array, and ov29_022DC2B8 and ov29_022DC33C are declared u8 * in their destination file. That last one is inconsistent with poly_text.h, which declares ov29_022DC2B8 as struct unk_ov29_022DC240_t *; the file already carried the same split for ov29_022DC240, so its local convention was followed rather than changing pre-existing code. Worth unifying separately. Authored by Claude (Opus 5) under human direction. Confirmed by a matching build: build/pmdsky.us/pmdsky.us.nds: OK. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
49 lines
932 B
C
49 lines
932 B
C
#ifndef PMDSKY_MAIN_02042AF8_H
|
|
#define PMDSKY_MAIN_02042AF8_H
|
|
|
|
#include "util.h"
|
|
|
|
struct unk_020AFED4 {
|
|
u8 field_0x0[8];
|
|
s32 *field_0x8;
|
|
};
|
|
|
|
struct unk_02043148 {
|
|
s32 field_0x0;
|
|
s16 field_0x4[1000];
|
|
s8 field_0x7D4;
|
|
s8 field_0x7D5;
|
|
s8 field_0x7D6;
|
|
u8 field_0x7D7[0x139];
|
|
s16 field_0x910;
|
|
u8 field_0x912[0xFAA];
|
|
u32 field_0x18BC;
|
|
};
|
|
|
|
struct unk_020AFEE0 {
|
|
u16 field_0x0;
|
|
u16 field_0x2;
|
|
struct unk_02043148 *field_0x4;
|
|
u8 *field_0x8;
|
|
s32 field_0xC;
|
|
u32 field_0x10;
|
|
};
|
|
|
|
extern struct unk_020AFED4 UNK_STORAGE_STRUCT_0XC;
|
|
extern struct unk_020AFEE0 UNK_STORAGE_STRUCT_0X14;
|
|
|
|
|
|
void sub_02010044(s16 a);
|
|
void sub_020444B0(void);
|
|
s32 IsStorageFull(s32 a);
|
|
void sub_0202D134(s8 a);
|
|
s32 sub_0202C620(s8 a);
|
|
bool8 IsCollectionMenuActive(s8 a);
|
|
bool8 IsCollectionMenuState3(s8 a);
|
|
|
|
void ClearBagSelectedItemTable(void);
|
|
s32 sub_02042B20(void);
|
|
s32 sub_02042B50(void);
|
|
|
|
#endif
|