pmd-red/src/adventure_log_menu.c
Seth Barberee 377bd14ea6
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
2021-06-09 22:54:21 -05:00

41 lines
763 B
C

#include "global.h"
#include "input.h"
#include "main_menu.h"
#include "adventure_log.h"
#include "text.h"
extern void CreateAdventureLogScreen(u32);
extern u32 HandleAdventureLogInput(u32);
extern void CleanAdventureLogScreen();
void CreateAdventureLogMenu(void)
{
CreateAdventureLogScreen(0);
}
void CleanAdventureLogMenu(void)
{
ResetUnusedInputStruct();
sub_800641C(0, 1, 1);
}
u32 UpdateAdventureLogMenu(void)
{
u32 nextMenu;
nextMenu = MENU_NO_SCREEN_CHANGE;
switch(HandleAdventureLogInput(1))
{
case 0:
case 1:
break;
case 2:
case 3:
CleanAdventureLogScreen();
nextMenu = MENU_MAIN_SCREEN;
default:
break;
}
return nextMenu;
}