mirror of
https://github.com/zeldaret/tp
synced 2026-08-30 17:29:39 -04:00
some J3D/misc cleanup (#2628)
* some j3d cleanup * begin using uintptr_t * j3dgraphbase cleanup * j3dgraphanimator cleanup
This commit is contained in:
+4
-4
@@ -784,11 +784,11 @@ static int cCc_Init() {
|
||||
JKRHeap* prev = heap->becomeCurrentHeap();
|
||||
|
||||
memset(&DMC, 0, sizeof(DMC));
|
||||
for (int i = 0; i < ARRAY_SIZE(DynamicNameTable); i++) {
|
||||
for (int i = 0; i < ARRAY_SIZEU(DynamicNameTable); i++) {
|
||||
const DynamicNameTableEntry* d = &DynamicNameTable[i];
|
||||
|
||||
if (d->name != NULL) {
|
||||
for (int j = 0; j < ARRAY_SIZE(DMC); j++) {
|
||||
for (int j = 0; j < ARRAY_SIZEU(DMC); j++) {
|
||||
if (DMC[j] != NULL) {
|
||||
if (!strcmp(d->name, DMC[j]->getModuleName())) {
|
||||
DMC[d->mKey] = DMC[j];
|
||||
@@ -834,7 +834,7 @@ int cDyl_LinkASync(s16 i_ProfName) {
|
||||
return cPhs_INIT_e;
|
||||
}
|
||||
|
||||
if (i_ProfName >= ARRAY_SIZE(DMC)) {
|
||||
if (i_ProfName >= ARRAY_SIZEU(DMC)) {
|
||||
OSReport_Error("cDyl_Link i_ProfName=%d\n", i_ProfName);
|
||||
return cPhs_ERROR_e;
|
||||
}
|
||||
@@ -950,4 +950,4 @@ int cDylPhs::Unlink(request_of_phase_process_class* i_phase, s16 i_ProfName) {
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user