some J3D/misc cleanup (#2628)

* some j3d cleanup

* begin using uintptr_t

* j3dgraphbase cleanup

* j3dgraphanimator cleanup
This commit is contained in:
TakaRikka
2025-09-04 07:56:59 -07:00
committed by GitHub
parent ee8b843996
commit b45a089e15
290 changed files with 4221 additions and 3605 deletions
+3 -2
View File
@@ -19,6 +19,7 @@
#include "JSystem/JUtility/JUTAssert.h"
#include "dolphin/ai.h"
#include <dolphin/os.h>
#include <stdint.h>
/* 80431C58-80431C68 05E978 000C+04 2/2 0/0 0/0 .bss sDmaDacBuffer__9JASDriver */
s16* JASDriver::sDmaDacBuffer[3];
@@ -87,7 +88,7 @@ void JASDriver::initAI(void (*param_0)(void)) {
sDspStatus = 0;
JASChannel::initBankDisposeMsgQueue();
AIInit(NULL);
AIInitDMA((u32)sDmaDacBuffer[2], size);
AIInitDMA((uintptr_t)sDmaDacBuffer[2], size);
BOOL isOutputRate;
if (sOutputRate == 0) {
isOutputRate = FALSE;
@@ -139,7 +140,7 @@ void JASDriver::updateDac() {
s16* r30 = lastRspMadep;
lastRspMadep = NULL;
if (r30) {
AIInitDMA((u32)r30, getDacSize() * 2);
AIInitDMA((uintptr_t)r30, getDacSize() * 2);
}
s32 frameSamples = getFrameSamples();
readDspBuffer(sDmaDacBuffer[dacp], frameSamples);
+2 -1
View File
@@ -10,6 +10,7 @@
#include "JSystem/JKernel/JKRDvdAramRipper.h"
#include "cstring.h"
#include "dolphin/os.h"
#include <stdint.h>
/* 80451290-80451298 000790 0004+04 1/1 0/0 0/0 .sbss sAramHeap__16JASWaveArcLoader */
JASHeap* JASWaveArcLoader::sAramHeap;
@@ -113,7 +114,7 @@ bool JASWaveArc::sendLoadCmd() {
loadToAramCallbackParams commandInfo;
commandInfo.mWavArc = this;
commandInfo.mEntryNum = mEntryNum;
commandInfo.mBase = (u32)mHeap.mBase;
commandInfo.mBase = (uintptr_t)mHeap.mBase;
commandInfo._c = ++_58;
_5a++;