diff options
| author | Prakxo <87568477+Prakxo@users.noreply.github.com> | 2024-09-21 18:17:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-21 09:17:13 -0700 |
| commit | 2c7d61be83bedf7252cb0dccc0c681bfb6bb29da (patch) | |
| tree | 0bb4502456b7807f4529e5cf246545011bc7f4d1 /include | |
| parent | a12931233d710ca9d1336a1ecb5e63f7c941ce7d (diff) | |
m_land OK (#212)
Diffstat (limited to 'include')
| -rw-r--r-- | include/6B81C0.h | 2 | ||||
| -rw-r--r-- | include/m_land.h | 26 |
2 files changed, 15 insertions, 13 deletions
diff --git a/include/6B81C0.h b/include/6B81C0.h index a897cd4..5394e33 100644 --- a/include/6B81C0.h +++ b/include/6B81C0.h @@ -4,7 +4,7 @@ #include "ultra64.h" // void func_80094520_jp(); -// void func_80094690_jp(); +void mHm_ClearAllHomeInfo(void); void mHm_SetNowHome(void); // void func_80094744_jp(); // void func_800947C0_jp(); diff --git a/include/m_land.h b/include/m_land.h index d2bf7ef..8174c8a 100644 --- a/include/m_land.h +++ b/include/m_land.h @@ -5,6 +5,7 @@ #include "unk.h" #define mLd_CHECK_LAND_ID(id) (((id) & 0xFF00) == 0x3000) +#define mLd_CHECK_ID(id) ((id & 0x3000) == 0x3000) // Town name character count #define LAND_NAME_SIZE 6 @@ -16,21 +17,22 @@ typedef struct LandInfo { /* 0x8 */ u16 id; } LandInfo; // size = 0xA -s32 mLd_NullCheckLandName(char*); -s32 mLd_CheckId(u16); -s32 mLd_CheckCmpLandName(char* name1, char* name2); -s32 mLd_CheckCmpLand(char* name1, u16 id1, char* name2, u16 id2); +s32 mLd_NullCheckLandName(char* landName); +s32 mLd_CheckId(u16 landId); +s32 mLd_CheckCmpLandName(char* nameA, char* nameB); +s32 mLd_CheckCmpLand(char* nameA, u16 idA, char* nameB, u16 idB); void mLd_ClearLandName(char* name); -void mLd_CopyLandName(char* arg0, char* arg1); -// void func_80094F24_jp(); -// void func_80094F84_jp(); -// void func_8009504C_jp(); +void mLd_CopyLandName(char* nameA, char* nameB); +size_t mLd_AddMuraString(char* name, size_t len); +size_t mLd_GetLandNameStringAddMura(char* buf); +void mLd_SetFreeStrLandMuraName(char* name, s32 freeStr); char* mLd_GetLandName(void); -// void func_800950E8_jp(); -s32 mLd_PlayerManKindCheckNo(u8 playerNumber); +u16 mLd_MakeLandId(void); +s32 mLd_PlayerManKindCheckNo(u8 playerNo); s32 mLd_PlayerManKindCheck(void); -s32 mLd_CheckThisLand(char* arg0, u16 arg1); -// void func_80095218_jp(); +s32 mLd_CheckThisLand(char* otherName, u16 otherId); +void mLd_LandInfoInit(void); void mLd_LandDataInit(void); + #endif |
