Document and decompile more of frontier pass.

This commit is contained in:
DizzyEggg
2019-01-26 14:50:24 +01:00
parent 08a3533682
commit 0688725afb
8 changed files with 546 additions and 1395 deletions

View File

@@ -8,6 +8,7 @@
#include "link.h"
#include "bg.h"
#include "sound.h"
#include "frontier_pass.h"
#include "overworld.h"
#include "menu.h"
#include "text.h"
@@ -90,7 +91,6 @@ struct TrainerCardData
//external functions
extern u8 sub_80D30A0(u16);
extern void sub_80C5868(void);
// EWRAM
EWRAM_DATA static struct TrainerCardData *sData = NULL;
@@ -1754,7 +1754,7 @@ void ShowPlayerTrainerCard(void (*callback)(void))
{
sData = AllocZeroed(sizeof(*sData));
sData->callback2 = callback;
if (callback == sub_80C5868)
if (callback == CB2_ReshowFrontierPass)
sData->var_52C = 0x7FFF;
else
sData->var_52C = 0;