From 2ec8ae4bec77ae4c5dac798a44e497d33be5dd7f Mon Sep 17 00:00:00 2001 From: Kaz Date: Mon, 8 Jun 2020 04:12:23 -0400 Subject: Preliminary support for English rev0 debug. Matching but still needs cleaning up. Rename DEBUG_TRANSLATE to DEBUG_FIX now that we have actual English Debug ROMs. Add Sapphire German "first edition" debug support, now that we have a hash for it. Fix an obvious nonmatching. --- include/start_menu.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/start_menu.h') diff --git a/include/start_menu.h b/include/start_menu.h index 327df8c16..b035eb211 100644 --- a/include/start_menu.h +++ b/include/start_menu.h @@ -13,7 +13,11 @@ void debug_sub_8075DB4(struct BattleTowerEReaderTrainer *ereaderTrainer, const u bool8 debug_sub_8075C30(void); #if DEBUG -extern u32 gUnknown_Debug_03004BD0; +extern u8 gUnknown_Debug_03004BD0; +// TODO: see if this is in rev1+ +#if (ENGLISH && REVISION == 0) +extern u8 gUnknown_Debug_Murakawa2; +#endif #endif // DEBUG #endif // GUARD_START_MENU_H -- cgit v1.2.3 From 7f94272bfa5ebdfd4edbb41210b8644273ad8783 Mon Sep 17 00:00:00 2001 From: Kaz Date: Mon, 8 Jun 2020 21:40:08 -0400 Subject: Actually fix everything. --- include/start_menu.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'include/start_menu.h') diff --git a/include/start_menu.h b/include/start_menu.h index b035eb211..3f69604f1 100644 --- a/include/start_menu.h +++ b/include/start_menu.h @@ -13,11 +13,20 @@ void debug_sub_8075DB4(struct BattleTowerEReaderTrainer *ereaderTrainer, const u bool8 debug_sub_8075C30(void); #if DEBUG -extern u8 gUnknown_Debug_03004BD0; + +#if (ENGLISH && REVISION == 0) +#define TYPE u8 +#else +#define TYPE u32 +#endif + +extern TYPE gUnknown_Debug_03004BD0; // TODO: see if this is in rev1+ #if (ENGLISH && REVISION == 0) -extern u8 gUnknown_Debug_Murakawa2; +extern TYPE gUnknown_Debug_Murakawa2; #endif + +#undef TYPE #endif // DEBUG #endif // GUARD_START_MENU_H -- cgit v1.2.3