diff --git a/config/rel_slices.yml b/config/rel_slices.yml index 7e232bc2..1b27c778 100644 --- a/config/rel_slices.yml +++ b/config/rel_slices.yml @@ -44,6 +44,9 @@ m_kabu_manager.c: m_malloc.c: .text: [0x803BC510, 0x803BC70C] .bss: [0x81297CA0, 0x81297CD0] +m_mail_password_check.c: + .text: [0x803BD250, 0x803BEC9C] + .data: [0x806566C0, 0x806571D8] #m_lib.c: #sqrtf statics # .text: [0x803BAB0C, 0x803BB960] # .rodata: [0x80642640, 0x80642680] diff --git a/include/m_mail_password_check.h b/include/m_mail_password_check.h index 1d522262..be2947a9 100644 --- a/include/m_mail_password_check.h +++ b/include/m_mail_password_check.h @@ -66,6 +66,7 @@ extern int mMpswd_decode_code(u8* password_data, u8* password_str); extern int mMpswd_restore_code(u8* body, u8* password); extern void mMpswd_password(u8* password_data, mMpswd_password_c* password); extern int mMpswd_password_zuru_check(mMpswd_password_c* password); +extern int mMpswd_check_present_user(mActor_name_t item); extern int mMpswd_check_present(mMpswd_password_c* password); extern mActor_name_t mMpswd_get_sp_npc_num(int sp_npc); extern int mMpswd_check_npc_code(mMpswd_password_c* password); diff --git a/include/m_room_type.h b/include/m_room_type.h index 8d03b144..1a8954dd 100644 --- a/include/m_room_type.h +++ b/include/m_room_type.h @@ -106,6 +106,6 @@ extern mActor_name_t mRmTp_FtrItemNo2Item1ItemNo(mActor_name_t ftr_item_no, void extern int mRmTp_FtrItemNo2FtrIdx(mActor_name_t ftr_item_no); extern mActor_name_t mRmTp_FtrIdx2FtrItemNo(int ftr_idx, int rotation); extern int mRmTp_GetFurnitureData(mActor_name_t ftr, int ut_x, int ut_z, mRmTp_FtrPlaceInfo_t* place_info); -extern u8 mRmTp_FurnitureIdx2FurnitureKind(int ftr_idx); +extern int mRmTp_FurnitureIdx2FurnitureKind(int ftr_idx); #endif \ No newline at end of file diff --git a/rel/m_mail_password_check.c b/rel/m_mail_password_check.c index 660807aa..efa39d09 100644 --- a/rel/m_mail_password_check.c +++ b/rel/m_mail_password_check.c @@ -1023,7 +1023,7 @@ static int mMpswd_check_present_famicom(mActor_name_t item) { return res; } -static int mMpswd_check_present_user(mActor_name_t item) { +extern int mMpswd_check_present_user(mActor_name_t item) { mActor_name_t full_stack_item; u32 price = 0; int res = FALSE;