diff --git a/include/Kyoto/Particles/CElementGen.hpp b/include/Kyoto/Particles/CElementGen.hpp index 0a24a7ba..3c0f6bc4 100644 --- a/include/Kyoto/Particles/CElementGen.hpp +++ b/include/Kyoto/Particles/CElementGen.hpp @@ -8,6 +8,7 @@ #include "Kyoto/Math/CVector3f.hpp" #include "Kyoto/Particles/CParticleGen.hpp" #include "Kyoto/TToken.hpp" +#include "Kyoto/CRandom16.hpp" class CGenDescription; class CModVectorElement; diff --git a/include/rstl/auto_ptr.hpp b/include/rstl/auto_ptr.hpp index cb91e824..777b66c6 100644 --- a/include/rstl/auto_ptr.hpp +++ b/include/rstl/auto_ptr.hpp @@ -21,7 +21,6 @@ public: auto_ptr(const auto_ptr& other) : x0_has(other.x0_has), x4_item(other.x4_item) { other.x0_has = false; } - // TODO check auto_ptr& operator=(const auto_ptr& other) { if (&other != this) { if (x0_has) { diff --git a/src/Collision/COBBox.cpp b/src/Collision/COBBox.cpp index bec6bf25..334ac7bc 100644 --- a/src/Collision/COBBox.cpp +++ b/src/Collision/COBBox.cpp @@ -7,7 +7,7 @@ COBBox::COBBox(const CTransform4f& xf, const CVector3f& extents) COBBox::COBBox(CInputStream& in) : mTransform(in), mExtents(in) {} -CAABox COBBox::CalculateAABox(const CTransform4f& xf) const {} +CAABox COBBox::CalculateAABox(const CTransform4f& xf) const { return CAABox(CVector3f::Zero(), CVector3f::Zero()); } COBBox COBBox::FromAABox(const CAABox& box, const CTransform4f& xf) { CVector3f center = box.GetCenterPoint(); @@ -16,7 +16,7 @@ COBBox COBBox::FromAABox(const CAABox& box, const CTransform4f& xf) { return COBBox(final, extents); } -bool COBBox::LineIntersectsBox(const CMRay& ray, float& penetration) const {} +bool COBBox::LineIntersectsBox(const CMRay& ray, float& penetration) const { return false; } bool COBBox::AABoxIntersectsBox(const CAABox& box) const { return OBBIntersectsBox(FromAABox(box, CTransform4f::Identity())); diff --git a/src/Kyoto/Alloc/CGameAllocator.cpp b/src/Kyoto/Alloc/CGameAllocator.cpp index 37de8470..0dbddc17 100644 --- a/src/Kyoto/Alloc/CGameAllocator.cpp +++ b/src/Kyoto/Alloc/CGameAllocator.cpp @@ -60,7 +60,7 @@ CGameAllocator::~CGameAllocator() { } } -bool CGameAllocator::Initialize(COsContext& ctx) {} +bool CGameAllocator::Initialize(COsContext& ctx) { return false; } void CGameAllocator::Shutdown() { ReleaseAll(); @@ -174,7 +174,7 @@ void* CGameAllocator::Alloc(size_t size, EHint hint, EScope scope, EType type, return ++info; } -CGameAllocator::SGameMemInfo* CGameAllocator::FindFreeBlock(uint) {} +CGameAllocator::SGameMemInfo* CGameAllocator::FindFreeBlock(uint) { return nullptr; } CGameAllocator::SGameMemInfo* CGameAllocator::FindFreeBlockFromTopOfHeap(uint size) { SGameMemInfo* iter = x10_last; @@ -192,7 +192,7 @@ CGameAllocator::SGameMemInfo* CGameAllocator::FindFreeBlockFromTopOfHeap(uint si return ret; } -uint CGameAllocator::FixupAllocPtrs(SGameMemInfo*, uint, uint, EHint, const CCallStack&) {} +uint CGameAllocator::FixupAllocPtrs(SGameMemInfo*, uint, uint, EHint, const CCallStack&) { return 0; } void CGameAllocator::UpdateAllocDebugStats(uint len, uint roundedLen, uint offset) { ++x84_; @@ -266,7 +266,7 @@ void CGameAllocator::ReleaseAll() { void* CGameAllocator::AllocSecondary(size_t size, EHint hint, EScope scope, EType type, const CCallStack& callstack) { - Alloc(size, hint, scope, type, callstack); + return Alloc(size, hint, scope, type, callstack); }; bool CGameAllocator::FreeSecondary(const void* ptr) { return Free(ptr); }; diff --git a/src/MetroidPrime/CPhysicsActor.cpp b/src/MetroidPrime/CPhysicsActor.cpp index 3a88b1d5..8f1b779b 100644 --- a/src/MetroidPrime/CPhysicsActor.cpp +++ b/src/MetroidPrime/CPhysicsActor.cpp @@ -201,4 +201,7 @@ CVector3f CPhysicsActor::GetMoveToORImpulseWR(const CVector3f& trans, float d) c return (GetMass() * impulse) * (1.f / d); } -CAxisAngle CPhysicsActor::GetRotateToORAngularMomentumWR(const CQuaternion& q, float d) const {} +CAxisAngle CPhysicsActor::GetRotateToORAngularMomentumWR(const CQuaternion& q, float d) const { + // TODO + return CAxisAngle(); +}