2017-10-24 00:35:06 +02:00
|
|
|
|
|
|
|
// Includes
|
|
|
|
#include "global.h"
|
2017-10-24 00:56:18 +02:00
|
|
|
#include "list_menu.h"
|
2017-10-24 00:35:06 +02:00
|
|
|
#include "decoration.h"
|
|
|
|
#include "decoration_inventory.h"
|
|
|
|
#include "text.h"
|
2017-10-24 00:56:18 +02:00
|
|
|
#include "event_data.h"
|
2017-10-24 00:35:06 +02:00
|
|
|
#include "secret_base.h"
|
|
|
|
|
|
|
|
// Static type declarations
|
|
|
|
|
2017-10-24 00:56:18 +02:00
|
|
|
struct SecretBaseListMenuBuffer {
|
|
|
|
struct ListMenuItem items[11];
|
|
|
|
u8 names[11][32];
|
|
|
|
};
|
|
|
|
|
2017-10-24 00:35:06 +02:00
|
|
|
// Static RAM declarations
|
2017-10-24 00:56:18 +02:00
|
|
|
EWRAM_DATA u8 gUnknown_0203A01C = 0;
|
|
|
|
EWRAM_DATA u8 gUnknown_0203A01D = 0;
|
|
|
|
EWRAM_DATA struct SecretBaseListMenuBuffer *gUnknown_0203A020 = NULL;
|
2017-10-24 00:35:06 +02:00
|
|
|
|
|
|
|
// Static ROM declarations
|
|
|
|
|
|
|
|
void sub_80E8AF0(struct SecretBaseRecord *sbr)
|
|
|
|
{
|
|
|
|
u16 i;
|
|
|
|
|
|
|
|
CpuFastFill16(0, sbr, sizeof(struct SecretBaseRecord));
|
|
|
|
for (i = 0; i < 7; i ++)
|
|
|
|
{
|
|
|
|
sbr->trainerName[i] = EOS;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-24 00:56:18 +02:00
|
|
|
void ResetSecretBases(void)
|
|
|
|
{
|
|
|
|
u16 i;
|
|
|
|
|
|
|
|
for (i = 0; i < 20; i ++)
|
|
|
|
{
|
|
|
|
sub_80E8AF0(&gSaveBlock1Ptr->secretBases[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void sub_80E8B58(void)
|
|
|
|
{
|
|
|
|
gUnknown_0203A01C = gSpecialVar_0x8004;
|
|
|
|
}
|
|
|
|
|
2017-10-24 00:35:06 +02:00
|
|
|
// .rodata
|
|
|
|
|
|
|
|
// .text
|