summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorpetrie911 <69443847+petrie911@users.noreply.github.com>2024-04-08 17:25:56 -0500
committerGitHub <noreply@github.com>2024-04-08 19:25:56 -0300
commit52e1b6cb17e7ca10b1e7d5a4e0e0dd023e475a9a (patch)
treeeb9dec0f320fde60abcb1cc4626be656a5742f98 /src/sys
parentbe0d328b4e649be60bf03249bed6fd271bf0693a (diff)
Further docs on script, various other things (#204)
* stuff * too much * Torch commit * torch again * names and such * names * even more stuff * format * enums * whoops on the gbi
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/sys_lib.c4
-rw-r--r--src/sys/sys_math.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/sys/sys_lib.c b/src/sys/sys_lib.c
index ffb3cb91..a4f8e1b5 100644
--- a/src/sys/sys_lib.c
+++ b/src/sys/sys_lib.c
@@ -81,7 +81,7 @@ void Lib_QuickSort(u8* first, u32 length, u32 size, CompareFunc cFunc) {
}
}
-void Lib_Perspective(Gfx** dList) {
+void Lib_InitPerspective(Gfx** dList) {
u16 norm;
guPerspective(gGfxMtx, &norm, D_game_80161A3C, (f32) SCREEN_WIDTH / SCREEN_HEIGHT, D_game_80161A40, D_game_80161A44,
@@ -93,7 +93,7 @@ void Lib_Perspective(Gfx** dList) {
Matrix_Copy(gGfxMatrix, &gIdentityMatrix);
}
-void Lib_Ortho(Gfx** dList) {
+void Lib_InitOrtho(Gfx** dList) {
guOrtho(gGfxMtx, -160.0f, 160.0f, -120.0f, 120.0f, D_game_80161A40, D_game_80161A44, 1.0f);
gSPMatrix((*dList)++, gGfxMtx++, G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_PROJECTION);
guLookAt(gGfxMtx, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, -12800.0f, 0.0f, 1.0f, 0.0f);
diff --git a/src/sys/sys_math.c b/src/sys/sys_math.c
index 5e9c8591..a4ff84d9 100644
--- a/src/sys/sys_math.c
+++ b/src/sys/sys_math.c
@@ -1,4 +1,5 @@
#include "sys.h"
+#include "prevent_bss_reordering.h"
s32 sSeededRandSeed3;
s32 sRandSeed1;