Decompile Path_GetByIndex

This commit is contained in:
Roman971
2020-03-23 21:19:24 +01:00
parent d2729f9d88
commit a9d4fec113
2 changed files with 11 additions and 19 deletions
+11 -1
View File
@@ -1,7 +1,17 @@
#include <ultra64.h>
#include <global.h>
#pragma GLOBAL_ASM("asm/non_matchings/code/z_path/Path_GetByIndex.s")
Path* Path_GetByIndex(GlobalContext* globalCtx, s16 index, s16 max) {
Path* path;
if (index != max) {
path = &globalCtx->setupPathList[index];
} else {
path = NULL;
}
return path;
}
#pragma GLOBAL_ASM("asm/non_matchings/code/z_path/Path_OrientAndGetDistSq.s")