Start decompile player_pc
This commit is contained in:
@@ -387,4 +387,8 @@ extern const u8 FieryPath_EventScript_2908FD[];
|
||||
extern const u8 EventScript_290CAE[];
|
||||
extern const u8 EventScript_2926F8[];
|
||||
|
||||
//player pc
|
||||
extern const u8 LittlerootTown_BrendansHouse_2F_EventScript_1F863F[];
|
||||
extern const u8 LittlerootTown_MaysHouse_2F_EventScript_1F958F[];
|
||||
|
||||
#endif //GUARD_EVENT_SCRIPTS_H
|
||||
|
||||
@@ -20,6 +20,7 @@ extern struct BagStruct gUnknown_0203CE58;
|
||||
extern u16 gSpecialVar_ItemId;
|
||||
|
||||
// Exported ROM declarations
|
||||
void sub_81AAC14(void);
|
||||
void sub_81AAC50(void);
|
||||
void sub_81AAC70(void);
|
||||
void bag_menu_mail_related(void);
|
||||
|
||||
@@ -53,6 +53,7 @@ struct WindowTemplate sub_8198A50(u8, u8, u8, u8, u8, u8, u16);
|
||||
void CreateYesNoMenu(const struct WindowTemplate *windowTemplate, u16 borderFirstTileNum, u8 borderPalette, u8 initialCursorPos);
|
||||
void copy_decompressed_tile_data_to_vram_autofree(u8 bgId, const void *src, int size, u16 offset, u8 mode);
|
||||
s8 ProcessMenuInputNoWrap_(void);
|
||||
s8 ProcessMenuInput_other(void);
|
||||
void do_scheduled_bg_tilemap_copies_to_vram(void);
|
||||
void clear_scheduled_bg_copies_to_vram(void);
|
||||
void AddTextPrinterParameterized2(u8 windowId, u8 fontId, u8 x, u8 y, u8 letterSpacing, u8 lineSpacing, const u8 *color, s8 speed, const u8 *str);
|
||||
|
||||
+74
-1
@@ -1,13 +1,86 @@
|
||||
#ifndef GUARD_PLAYER_PC_H
|
||||
#define GUARD_PLAYER_PC_H
|
||||
|
||||
// local task defines
|
||||
#define PAGE_INDEX data[0]
|
||||
#define ITEMS_ABOVE_TOP data[1]
|
||||
#define NUM_ITEMS data[1]
|
||||
#define NUM_QUANTITY_ROLLER data[3]
|
||||
#define NUM_PAGE_ITEMS data[4]
|
||||
// not used
|
||||
#define CURRENT_ITEM_STORAGE_MENU data[3]
|
||||
// not used
|
||||
#define SWAP_ITEM_INDEX data[8]
|
||||
#define SWITCH_MODE_ACTIVE data[9]
|
||||
|
||||
// this is potentially an ewram access occuring in high ewram. TODO: investigate this further.
|
||||
#define NEW_GAME_PC_ITEMS(i, type) ((u16)((u16 *)gNewGamePCItems + type)[i * 2])
|
||||
|
||||
// defined and used in the above macro
|
||||
enum
|
||||
{
|
||||
PC_ITEM_ID,
|
||||
PC_QUANTITY
|
||||
};
|
||||
|
||||
// player PC menu options
|
||||
enum
|
||||
{
|
||||
PLAYERPC_MENU_ITEMSTORAGE,
|
||||
PLAYERPC_MENU_MAILBOX,
|
||||
PLAYERPC_MENU_DECORATION,
|
||||
PLAYERPC_MENU_TURNOFF
|
||||
};
|
||||
|
||||
// item storage menus
|
||||
enum
|
||||
{
|
||||
ITEMPC_MENU_WITHDRAW,
|
||||
ITEMPC_MENU_DEPOSIT,
|
||||
ITEMPC_MENU_TOSS,
|
||||
ITEMPC_MENU_EXIT
|
||||
};
|
||||
|
||||
// mailbox mail options
|
||||
enum
|
||||
{
|
||||
MAILBOX_READ,
|
||||
MAILBOX_MOVE_TO_BAG,
|
||||
MAILBOX_GIVE,
|
||||
MAILBOX_CANCEL,
|
||||
};
|
||||
|
||||
// special item description handlers
|
||||
enum
|
||||
{
|
||||
ITEMPC_SWITCH_WHICH_ITEM = 0xFFF7,
|
||||
ITEMPC_OKAY_TO_THROW_AWAY,
|
||||
ITEMPC_TOO_IMPORTANT,
|
||||
ITEMPC_NO_MORE_ROOM,
|
||||
ITEMPC_THREW_AWAY_ITEM,
|
||||
ITEMPC_HOW_MANY_TO_TOSS,
|
||||
ITEMPC_WITHDREW_THING,
|
||||
ITEMPC_HOW_MANY_TO_WITHDRAW,
|
||||
ITEMPC_GO_BACK_TO_PREV
|
||||
};
|
||||
|
||||
struct MailboxStruct
|
||||
{
|
||||
u16 cursorPos;
|
||||
u16 itemsAbove;
|
||||
u8 pageItems;
|
||||
u8 count;
|
||||
u8 unk6[6];
|
||||
u8 unkC[4];
|
||||
};
|
||||
|
||||
// Exported type declarations
|
||||
|
||||
// Exported RAM declarations
|
||||
|
||||
// Exported ROM declarations
|
||||
|
||||
void sub_816B060(u8 taskId);
|
||||
void ReshowPlayerPC(u8 taskId);
|
||||
void sub_816B31C(void);
|
||||
|
||||
#endif //GUARD_PLAYER_PC_H
|
||||
|
||||
@@ -372,4 +372,8 @@ extern const u8 gBirchDexRatingText_LessThan190[];
|
||||
extern const u8 gBirchDexRatingText_LessThan200[];
|
||||
extern const u8 gBirchDexRatingText_DexCompleted[];
|
||||
|
||||
//player menu text
|
||||
extern const u8 gText_WhatWouldYouLike[];
|
||||
extern const u8 gText_NoMailHere[];
|
||||
|
||||
#endif //GUARD_STRINGS_H
|
||||
|
||||
Reference in New Issue
Block a user