labeling pfsManager functions

This commit is contained in:
Banjo Kazooie
2022-12-08 17:17:59 -06:00
parent 143182f44a
commit bbe9f8d384
30 changed files with 281 additions and 281 deletions

View File

@@ -2,13 +2,12 @@
#include "functions.h"
#include "variables.h"
//BKMeshList_getVtxCount
s32 func_802E9F60(BKMeshList *arg0){
s32 meshList_getVtxCount(BKMeshList *meshList){
s32 i;
s32 v1 = 0;
BKMesh *v0 = (BKMesh *)(arg0 + 1);
BKMesh *v0 = (BKMesh *)(meshList + 1);
for(i = 0; i < arg0->meshCount_0; ++i){
for(i = 0; i < meshList->meshCount_0; ++i){
v1 += v0->vtxCount_2;
v0 = (BKMesh *)&((s16*)(v0 +1))[v0->vtxCount_2];
@@ -16,11 +15,11 @@ s32 func_802E9F60(BKMeshList *arg0){
return v1;
}
BKMesh * func_802E9F9C(BKMeshList *arg0, s32 mesh_id){
BKMesh * meshList_getMesh(BKMeshList *meshList, s32 mesh_id){
s32 i;
BKMesh *v1 = (BKMesh *)(arg0 + 1);
BKMesh *v1 = (BKMesh *)(meshList + 1);
for(i=0; i < arg0->meshCount_0; i++){
for(i=0; i < meshList->meshCount_0; i++){
if(v1->uid_0 == mesh_id){
return v1;
}
@@ -29,9 +28,9 @@ BKMesh * func_802E9F9C(BKMeshList *arg0, s32 mesh_id){
return NULL;
}
bool func_802E9FEC(BKMeshList * arg0, s32 mesh_id, void *vtx_id){
bool meshList_meshContainsVtx(BKMeshList * meshList, s32 mesh_id, void *vtx_id){
s32 i;
BKMesh *v0 = func_802E9F9C(arg0, mesh_id);
BKMesh *v0 = meshList_getMesh(meshList, mesh_id);
if(v0){
for(i = 0; i < v0->vtxCount_2; i++){