Minor cleanup & renaming

This commit is contained in:
Luke Street 2024-09-18 23:07:35 -06:00
parent 2c4c4fab4b
commit 02ca9b7893
8 changed files with 18 additions and 25 deletions

View File

@ -1743,7 +1743,7 @@ __ct__9CTweakGuiFR12CInputStream = .text:0x80074360; // type:function size:0xA5C
__dt__9CTweakGuiFv = .text:0x80074DBC; // type:function size:0x178 scope:global
__dl__22TOneStatic<9CTweakGui>FPv = .text:0x80074F34; // type:function size:0x2C scope:global
GetSortingBounds__12CScriptActorCFRC13CStateManager = .text:0x80074F60; // type:function size:0x84 scope:global
GetCollisionResponseType__12CScriptActorCFRC9CVector3fRC9CVector3fRC11CWeaponMode17EProjectileAttrib = .text:0x80074FE4; // type:function size:0xA0 scope:global
GetCollisionResponseType__12CScriptActorCFRC9CVector3fRC9CVector3fRC11CWeaponModei = .text:0x80074FE4; // type:function size:0xA0 scope:global
Accept__12CScriptActorFR8IVisitor = .text:0x80075084; // type:function size:0x38 scope:global
PreRender__12CScriptActorFR13CStateManagerRC14CFrustumPlanes = .text:0x800750BC; // type:function size:0x244 scope:global
AcceptScriptMsg__12CScriptActorF20EScriptObjectMessage9TUniqueIdR13CStateManager = .text:0x80075300; // type:function size:0x20C scope:global
@ -9111,7 +9111,7 @@ LoadAnimations__10CGunMotionFv = .text:0x801D8F74; // type:function size:0x38 sc
EnterFidget__10CGunMotionFR13CStateManagerQ28SamusGun11EFidgetTypei = .text:0x801D8FAC; // type:function size:0x3C scope:global
BasePosition__10CGunMotionFb = .text:0x801D8FE8; // type:function size:0x90 scope:global
GetFreeLookSetId__10CGunMotionCFv = .text:0x801D9078; // type:function size:0x8 scope:global
ReturnToDefault__10CGunMotionFR13CStateManager = .text:0x801D9080; // type:function size:0x28 scope:global
ReturnToDefault__10CGunMotionFR13CStateManagerb = .text:0x801D9080; // type:function size:0x28 scope:global
Draw__10CGunMotionCFRC13CStateManagerRC12CTransform4f = .text:0x801D90A8; // type:function size:0x84 scope:global
Update__10CGunMotionFfR13CStateManager = .text:0x801D912C; // type:function size:0x8C scope:global
PlayPasAnim__10CGunMotionFQ28SamusGun15EAnimationStateR13CStateManagerfb = .text:0x801D91B8; // type:function size:0x420 scope:global

View File

@ -1743,7 +1743,7 @@ __ct__9CTweakGuiFR12CInputStream = .text:0x800743DC; // type:function size:0xA5C
__dt__9CTweakGuiFv = .text:0x80074E38; // type:function size:0x178 scope:global
__dl__22TOneStatic<9CTweakGui>FPv = .text:0x80074FB0; // type:function size:0x2C scope:global
GetSortingBounds__12CScriptActorCFRC13CStateManager = .text:0x80074FDC; // type:function size:0x84 scope:global
GetCollisionResponseType__12CScriptActorCFRC9CVector3fRC9CVector3fRC11CWeaponMode17EProjectileAttrib = .text:0x80075060; // type:function size:0xA0 scope:global
GetCollisionResponseType__12CScriptActorCFRC9CVector3fRC9CVector3fRC11CWeaponModei = .text:0x80075060; // type:function size:0xA0 scope:global
Accept__12CScriptActorFR8IVisitor = .text:0x80075100; // type:function size:0x38 scope:global
PreRender__12CScriptActorFR13CStateManagerRC14CFrustumPlanes = .text:0x80075138; // type:function size:0x244 scope:global
AcceptScriptMsg__12CScriptActorF20EScriptObjectMessage9TUniqueIdR13CStateManager = .text:0x8007537C; // type:function size:0x20C scope:global
@ -9117,7 +9117,7 @@ LoadAnimations__10CGunMotionFv = .text:0x801D8FF0; // type:function size:0x38 sc
EnterFidget__10CGunMotionFR13CStateManagerQ28SamusGun11EFidgetTypei = .text:0x801D9028; // type:function size:0x3C scope:global
BasePosition__10CGunMotionFb = .text:0x801D9064; // type:function size:0x90 scope:global
GetFreeLookSetId__10CGunMotionCFv = .text:0x801D90F4; // type:function size:0x8 scope:global
ReturnToDefault__10CGunMotionFR13CStateManager = .text:0x801D90FC; // type:function size:0x28 scope:global
ReturnToDefault__10CGunMotionFR13CStateManagerb = .text:0x801D90FC; // type:function size:0x28 scope:global
Draw__10CGunMotionCFRC13CStateManagerRC12CTransform4f = .text:0x801D9124; // type:function size:0x84 scope:global
Update__10CGunMotionFfR13CStateManager = .text:0x801D91A8; // type:function size:0x8C scope:global
PlayPasAnim__10CGunMotionFQ28SamusGun15EAnimationStateR13CStateManagerfb = .text:0x801D9234; // type:function size:0x420 scope:global

View File

@ -34,6 +34,8 @@ inline void operator delete(void* ptr) { CMemory::Free(ptr); }
inline void operator delete[](void* ptr) { CMemory::Free(ptr); }
#define rs_new new ("??(??)", nullptr)
#else
void operator delete(void* ptr);
void operator delete[](void* ptr);
#define rs_new new
#endif

View File

@ -17,8 +17,6 @@ inline uchar ToUint8(register float in) {
return *ptr;
}
inline uchar ToUint8(int c) { return static_cast<uchar>(c); }
inline float ToReal32(register const uchar& in) {
register float r;
asm {
@ -47,22 +45,20 @@ inline ushort FtoUS(register float in) {
return *ptr;
}
inline int FtoL(float in) { return static_cast< int >(in); }
inline float LtoF(int in) { return static_cast< float >(in); }
#else
inline uchar ToUint8(float in) { return static_cast< uchar >(in); }
inline uchar ToUint8(int c) { return static_cast<uchar>(c); }
inline float ToReal32(uchar in) { return static_cast< float >(in); }
inline short FtoS(float in) { return static_cast< short >(in); }
inline ushort FtoUS(float in) { return static_cast< ushort >(in); }
inline int FtoL(float in) { return static_cast< int >(in); }
inline float LtoF(int in) { return static_cast< float >(in); }
#endif
inline uchar ToUint8(int c) { return static_cast< uchar >(c); }
inline int FtoL(float in) { return static_cast< int >(in); }
inline float LtoF(int in) { return static_cast< float >(in); }
inline float ToReal32(int in) { return static_cast< float >(in); }
inline int ToInt32(float in) { return static_cast< int >(in); }
inline unsigned short ToUint16(unsigned short in) { return static_cast< short >(in); }
inline char ToChar(int c) { return ToUint8(c) ; }
inline char ToChar(int c) { return ToUint8(c); }
} // namespace CCast
#endif // _CCAST

View File

@ -1,8 +1,9 @@
#ifndef _DOLPHIN_TYPES
#define _DOLPHIN_TYPES
#ifdef TARGET_PC
#include <stdint.h>
#ifdef TARGET_PC
typedef int8_t s8;
typedef int16_t s16;
typedef int32_t s32;

View File

@ -43,16 +43,13 @@ typedef int _INT32;
typedef unsigned int _UINT32;
#endif
int abs(int n);
#ifdef __MWERKS__
#define abs(n) __abs(n)
#define labs(n) __labs(n)
static inline double fabs(double x) { return __fabs(x); }
_MATH_INLINE double fabs(double x) { return __fabs(x); }
#else
// static inline int abs(int n) {
// int mask = n >> 31;
// return (n + mask) ^ mask;
// }
int abs(int n);
long labs(long n);
#endif
extern _INT32 __float_huge[];

View File

@ -12,9 +12,7 @@ CBSLoopAttack::CBSLoopAttack()
: x4_state(pas::kLS_Invalid)
, x8_loopAttackType(pas::kLAT_Invalid)
, xc_24_waitForAnimOver(false)
, xc_25_advance(false)
{}
, xc_25_advance(false) {}
void CBSLoopAttack::Start(CBodyController& bc, CStateManager& mgr) {
const CBCLoopAttackCmd* cmd =

View File

@ -79,7 +79,6 @@ void CGameCubeDoll::Draw(float alpha) {
CTransform4f::Scale(0.2f));
TToken< CModel > model(x0_model);
CModelFlags flags(CModelFlags::kT_Blend, alphaFader);
model->Draw(flags);
model->Draw(CModelFlags(CModelFlags::kT_Blend, alphaFader));
CGraphics::DisableAllLights();
}