fixed up typedef for u32 and s32 from mistake long ago

This commit is contained in:
elijah-thomas774
2024-05-12 16:04:01 -04:00
parent 94ec354dde
commit 62e0778390
34 changed files with 337 additions and 351 deletions
+3 -2
View File
@@ -1,10 +1,11 @@
#include "egg/core/eggController.h"
#include "MSL_C/string.h"
#include "egg/core/eggAllocator.h"
#include "egg/core/eggExpHeap.h"
#include "egg/core/eggSystem.h"
#include "MSL_C/string.h"
#include "rvl/VI.h"
EGG::NullController null_controller;
namespace EGG {
@@ -192,7 +193,7 @@ extern "C" void fn_803DB1E0(s32 channel, bool arg);
}
}
extern "C" long lbl_80574EE8;
extern "C" s32 lbl_80574EE8;
// TODO headers
extern "C" void fn_803D9400(void *a, void *b);
extern "C" void fn_803F2040(void *a, int b);
+6 -3
View File
@@ -38,13 +38,16 @@ namespace EGG {
OSUnlockMutex(&sRootMutex);
}
/* 80495560 */ void *Heap::alloc(size_t size, s32 align, Heap *heap) {
/* 80495560 */ void *Heap::alloc(size_t size, int align, Heap *heap) {
Heap *currentHeap = sCurrentHeap;
Thread *thread = Thread::findThread(OSGetCurrentThread());
Heap *threadHeap = nullptr;
if (thread != nullptr && (threadHeap = thread->mAllocatableHeap, threadHeap != nullptr)) {
heap = threadHeap;
if (thread != nullptr) {
threadHeap = thread->mAllocatableHeap;
if (threadHeap != nullptr) {
heap = threadHeap;
}
}
if (sAllocatableHeap != nullptr) {
if (heap == nullptr) {
+1 -1
View File
@@ -332,7 +332,7 @@ void Matrix34f::toQuat(Quatf &q) const {
q.multScalar(Math<f32>::inv(q.length()));
}
void Matrix34f::slerpTo(const Matrix34f &m2, Matrix34f &out, f32 t) {
void Matrix34f::slerpTo(const Matrix34f &m2, Matrix34f &out, f32 t) const {
Quatf q1, q2, q3;
m2.toQuat(q1);
toQuat(q2);