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 17:56:59 +03:00
committed by GitHub
parent ee8b843996
commit b45a089e15
290 changed files with 4221 additions and 3605 deletions
+7 -7
View File
@@ -194,18 +194,18 @@ void* cBgS::ConvDzb(void* p_dzb) {
}
if (pbgd->m_v_tbl != 0) {
pbgd->m_v_tbl += (u32)p_dzb;
pbgd->m_v_tbl += (uintptr_t)p_dzb;
}
pbgd->m_t_tbl += (u32)p_dzb;
pbgd->m_b_tbl += (u32)p_dzb;
pbgd->m_tree_tbl += (u32)p_dzb;
pbgd->m_g_tbl += (u32)p_dzb;
pbgd->m_ti_tbl += (u32)p_dzb;
pbgd->m_t_tbl += (uintptr_t)p_dzb;
pbgd->m_b_tbl += (uintptr_t)p_dzb;
pbgd->m_tree_tbl += (uintptr_t)p_dzb;
pbgd->m_g_tbl += (uintptr_t)p_dzb;
pbgd->m_ti_tbl += (uintptr_t)p_dzb;
for (int i = 0; i < pbgd->m_g_num; i++) {
((cBgD_Grp_t_*)pbgd->m_g_tbl)[i].strOffset =
(u32)p_dzb + ((cBgD_Grp_t_*)pbgd->m_g_tbl)[i].strOffset;
(uintptr_t)p_dzb + ((cBgD_Grp_t_*)pbgd->m_g_tbl)[i].strOffset;
}
return p_dzb;