1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-05 07:24:34 +00:00

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

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")