From 377bd14ea67d6177250fb401e12d7dfcf44e2cf6 Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Wed, 9 Jun 2021 22:54:21 -0500 Subject: Dungeon pokemon/Floor ID JSON Part 1 (#39) * move Thunderwave and Tiny Woods pokemon to json * rule tweaking to actually build tool before parsing JSON * delete .inc pokemon for tiny Woods and Thunderwave * silence git complaining about br_ips and ips_patch * use defines for species and pass the header file for species * convert sinister woods * convert MtThunderPeak * convert silent chasm * add trial floor_id w/ tiny woods * change make rule name to fix compile * MtSteel converted and bugfix * convert few floor headers and great canyon pokemon * code cleanup * unify unkData into UnkTextStruct2 * more code cleanup and some text decomp * doc more funcs and decomp/split some stuff * document more save stuff * more save work and move some data * pika sniped UpdateNatureTotal * decomp a litle and convert a few more dungeons * better scanning for json files * mt freeze and peak --- src/wonder_mail_pre.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/wonder_mail_pre.c') diff --git a/src/wonder_mail_pre.c b/src/wonder_mail_pre.c index 9d15ab3..4cf76c8 100644 --- a/src/wonder_mail_pre.c +++ b/src/wonder_mail_pre.c @@ -7,8 +7,6 @@ #include "memory.h" -extern void sub_800641C(void *r0, u8, u8); - extern struct WonderMailStruct_203B2C0 *gUnknown_203B2C0; extern char gUnknown_202E5D8[0x50]; extern char gAvailablePokemonNames[0x50]; @@ -89,8 +87,8 @@ u32 sub_8027F88(void) gUnknown_203B2C0->unk42E = 0; gUnknown_203B2C0->unk428 = 2; gUnknown_203B2C0->unk42A = 8; - for(counter = 0; counter < 0x36; counter++){ - gUnknown_203B2C0->unk8[counter] = 0; + for(counter = 0; counter < PASSWORD_BUFFER_SIZE; counter++){ + gUnknown_203B2C0->passwordBuffer[counter] = 0; } gUnknown_203B2C0->unk0 = 0x3D; sub_8028B04(0); // Set initial state to 0? -- cgit v1.2.3