mirror of
https://github.com/zeldaret/oot.git
synced 2025-10-20 05:30:26 +00:00
Use long
over int
for s32/u32 types (#1546)
* long s32 * Suggested changes
This commit is contained in:
parent
b3486b57ef
commit
a20163c6ab
21 changed files with 66 additions and 62 deletions
|
@ -376,14 +376,14 @@ void func_8002DBD0(Actor* actor, Vec3f* dest, Vec3f* pos);
|
|||
f32 Actor_HeightDiff(Actor* actorA, Actor* actorB);
|
||||
f32 Player_GetHeight(Player* player);
|
||||
f32 func_8002DCE4(Player* player);
|
||||
s32 func_8002DD6C(Player* player);
|
||||
s32 func_8002DD78(Player* player);
|
||||
int func_8002DD6C(Player* player);
|
||||
int func_8002DD78(Player* player);
|
||||
s32 func_8002DDE4(PlayState* play);
|
||||
s32 func_8002DDF4(PlayState* play);
|
||||
void func_8002DE04(PlayState* play, Actor* actorA, Actor* actorB);
|
||||
void func_8002DE74(PlayState* play, Player* player);
|
||||
void Actor_MountHorse(PlayState* play, Player* player, Actor* horse);
|
||||
s32 func_8002DEEC(Player* player);
|
||||
int func_8002DEEC(Player* player);
|
||||
void func_8002DF18(PlayState* play, Player* player);
|
||||
s32 func_8002DF38(PlayState* play, Actor* actor, u8 csAction);
|
||||
s32 func_8002DF54(PlayState* play, Actor* actor, u8 csAction);
|
||||
|
@ -991,10 +991,10 @@ void Path_CopyLastPoint(Path* path, Vec3f* dest);
|
|||
void FrameAdvance_Init(FrameAdvanceContext* frameAdvCtx);
|
||||
s32 FrameAdvance_Update(FrameAdvanceContext* frameAdvCtx, Input* input);
|
||||
void Player_SetBootData(PlayState* play, Player* this);
|
||||
s32 Player_InBlockingCsMode(PlayState* play, Player* this);
|
||||
s32 Player_InCsMode(PlayState* play);
|
||||
int Player_InBlockingCsMode(PlayState* play, Player* this);
|
||||
int Player_InCsMode(PlayState* play);
|
||||
s32 func_8008E9C4(Player* this);
|
||||
s32 Player_IsChildWithHylianShield(Player* this);
|
||||
int Player_IsChildWithHylianShield(Player* this);
|
||||
s32 Player_ActionToModelGroup(Player* this, s32 itemAction);
|
||||
void Player_SetModelsForHoldingShield(Player* this);
|
||||
void Player_SetModels(Player* this, s32 modelGroup);
|
||||
|
@ -1006,19 +1006,19 @@ void func_8008EDF0(Player* this);
|
|||
void func_8008EE08(Player* this);
|
||||
void func_8008EEAC(PlayState* play, Actor* actor);
|
||||
s32 func_8008EF44(PlayState* play, s32 ammo);
|
||||
s32 Player_IsBurningStickInRange(PlayState* play, Vec3f* pos, f32 xzRange, f32 yRange);
|
||||
int Player_IsBurningStickInRange(PlayState* play, Vec3f* pos, f32 xzRange, f32 yRange);
|
||||
s32 Player_GetStrength(void);
|
||||
u8 Player_GetMask(PlayState* play);
|
||||
Player* Player_UnsetMask(PlayState* play);
|
||||
s32 Player_HasMirrorShieldEquipped(PlayState* play);
|
||||
s32 Player_HasMirrorShieldSetToDraw(PlayState* play);
|
||||
int Player_HasMirrorShieldSetToDraw(PlayState* play);
|
||||
s32 Player_ActionToMagicSpell(Player* this, s32 itemAction);
|
||||
s32 Player_HoldsHookshot(Player* this);
|
||||
s32 func_8008F128(Player* this);
|
||||
int Player_HoldsHookshot(Player* this);
|
||||
int func_8008F128(Player* this);
|
||||
s32 Player_ActionToMeleeWeapon(s32 itemAction);
|
||||
s32 Player_GetMeleeWeaponHeld(Player* this);
|
||||
s32 Player_HoldsTwoHandedWeapon(Player* this);
|
||||
s32 Player_HoldsBrokenKnife(Player* this);
|
||||
int Player_HoldsBrokenKnife(Player* this);
|
||||
s32 Player_ActionToBottle(Player* this, s32 itemAction);
|
||||
s32 Player_GetBottleHeld(Player* this);
|
||||
s32 Player_ActionToExplosive(Player* this, s32 itemAction);
|
||||
|
@ -1265,7 +1265,7 @@ Gfx* Play_SetFog(PlayState* this, Gfx* gfx);
|
|||
void Play_Destroy(GameState* thisx);
|
||||
void Play_Init(GameState* thisx);
|
||||
void Play_Main(GameState* thisx);
|
||||
s32 Play_InCsMode(PlayState* this);
|
||||
int Play_InCsMode(PlayState* this);
|
||||
f32 func_800BFCB8(PlayState* this, MtxF* mf, Vec3f* pos);
|
||||
void* Play_LoadFile(PlayState* this, RomFile* file);
|
||||
void Play_GetScreenPos(PlayState* this, Vec3f* src, Vec3f* dest);
|
||||
|
@ -1287,8 +1287,8 @@ void Play_SaveSceneFlags(PlayState* this);
|
|||
void Play_SetupRespawnPoint(PlayState* this, s32 respawnMode, s32 playerParams);
|
||||
void Play_TriggerVoidOut(PlayState* this);
|
||||
void Play_TriggerRespawn(PlayState* this);
|
||||
s32 Play_CamIsNotFixed(PlayState* this);
|
||||
s32 FrameAdvance_IsEnabled(PlayState* this);
|
||||
int Play_CamIsNotFixed(PlayState* this);
|
||||
int FrameAdvance_IsEnabled(PlayState* this);
|
||||
s32 func_800C0D34(PlayState* this, Actor* actor, s16* yaw);
|
||||
s32 func_800C0DB4(PlayState* this, Vec3f* pos);
|
||||
void PreRender_SetValuesSave(PreRender* this, u32 width, u32 height, void* fbuf, void* zbuf, void* cvg);
|
||||
|
|
|
@ -3,7 +3,11 @@
|
|||
|
||||
#define NULL ((void*)0)
|
||||
|
||||
#if defined(_MIPS_SZLONG) && (_MIPS_SZLONG == 64)
|
||||
typedef unsigned long size_t;
|
||||
#else
|
||||
typedef unsigned int size_t;
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define offsetof(structure, member) __builtin_offsetof (structure, member)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#ifndef STDINT_H
|
||||
#define STDINT_H
|
||||
|
||||
typedef signed int intptr_t;
|
||||
typedef unsigned int uintptr_t;
|
||||
typedef signed long intptr_t;
|
||||
typedef unsigned long uintptr_t;
|
||||
|
||||
#define INT8_MIN (-0x80)
|
||||
#define INT16_MIN (-0x8000)
|
||||
|
|
|
@ -7,8 +7,8 @@ typedef signed char s8;
|
|||
typedef unsigned char u8;
|
||||
typedef signed short int s16;
|
||||
typedef unsigned short int u16;
|
||||
typedef signed int s32;
|
||||
typedef unsigned int u32;
|
||||
typedef signed long s32;
|
||||
typedef unsigned long u32;
|
||||
typedef signed long long int s64;
|
||||
typedef unsigned long long int u64;
|
||||
|
||||
|
|
|
@ -399,7 +399,7 @@ typedef struct PlayState {
|
|||
/* 0x11D34 */ TransitionActorContext transiActorCtx;
|
||||
/* 0x11D3C */ void (*playerInit)(Player* player, struct PlayState* play, FlexSkeletonHeader* skelHeader);
|
||||
/* 0x11D40 */ void (*playerUpdate)(Player* player, struct PlayState* play, Input* input);
|
||||
/* 0x11D44 */ s32 (*isPlayerDroppingFish)(struct PlayState* play);
|
||||
/* 0x11D44 */ int (*isPlayerDroppingFish)(struct PlayState* play);
|
||||
/* 0x11D48 */ s32 (*startPlayerFishing)(struct PlayState* play);
|
||||
/* 0x11D4C */ s32 (*grabPlayer)(struct PlayState* play, Player* player);
|
||||
/* 0x11D50 */ s32 (*startPlayerCutscene)(struct PlayState* play, Actor* actor, s32 csAction);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue