diff options
| author | Roman971 <romanlasnier@hotmail.com> | 2020-03-23 21:19:24 +0100 |
|---|---|---|
| committer | Roman971 <romanlasnier@hotmail.com> | 2020-03-23 21:19:24 +0100 |
| commit | a9d4fec1134990b3df70fe82e68013af07927d84 (patch) | |
| tree | a1f059a8d758206452a8ce3e1901a16a5127da22 /src/code/z_path.c | |
| parent | d2729f9d88b8bdb63397338e4979d619304a2b1e (diff) | |
Decompile Path_GetByIndex
Diffstat (limited to 'src/code/z_path.c')
| -rw-r--r-- | src/code/z_path.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/code/z_path.c b/src/code/z_path.c index 7b54d58c2..011421bd6 100644 --- a/src/code/z_path.c +++ b/src/code/z_path.c @@ -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") |
