summaryrefslogtreecommitdiff
path: root/src/engine/fox_pause.c
diff options
context:
space:
mode:
authorpetrie911 <69443847+petrie911@users.noreply.github.com>2024-05-14 09:44:12 -0500
committerGitHub <noreply@github.com>2024-05-14 11:44:12 -0300
commit3045745789fa5fc63cc83539a15d823bec80488d (patch)
treee87fc148403988b5fa7846c0a8fe9f0c4bffb493 /src/engine/fox_pause.c
parent89f11fc14231233325d2772df54bc857d29c0e9c (diff)
name remaining files, fix some fake matches (#245)
* splits * split and migrate * readwrite const * format
Diffstat (limited to 'src/engine/fox_pause.c')
-rw-r--r--src/engine/fox_pause.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/engine/fox_pause.c b/src/engine/fox_pause.c
new file mode 100644
index 00000000..ee7de964
--- /dev/null
+++ b/src/engine/fox_pause.c
@@ -0,0 +1,50 @@
+#include "global.h"
+
+/*
+ * File: fox_pause.c
+ * System: Pause
+ * Description: Some unused pause code.
+ */
+
+void func_pause_800A3CA0(void) {
+ Matrix_Push(&gGfxMatrix);
+ Matrix_LookAt(gGfxMatrix, gCsCamEyeX, gCsCamEyeY, gCsCamEyeZ, gCsCamAtX, gCsCamAtY, gCsCamAtZ, 0.0f, 1.0f, 0.0f,
+ MTXF_APPLY);
+ Matrix_Translate(gGfxMatrix, 0.0f, 0.0f, -200.0f, MTXF_APPLY);
+ Matrix_RotateY(gGfxMatrix, gControllerPress[gPlayerNum].stick_x * M_DTOR, MTXF_APPLY);
+ Matrix_RotateX(gGfxMatrix, gControllerPress[gPlayerNum].stick_y * M_DTOR, MTXF_APPLY);
+ Matrix_SetGfxMtx(&gMasterDisp);
+ RCP_SetupDL_23();
+ // Missing DList
+ Matrix_Pop(&gGfxMatrix);
+}
+
+void func_pause_800A3E00(void) {
+ switch (D_ctx_80177868) {
+ case 0:
+ if (gNextGameStateTimer == 0) {
+ D_ctx_80177868 = 1;
+ }
+ break;
+ case 1:
+ D_ctx_80177868 = 2;
+ gDrawMode = DRAW_UNK_7;
+ gCsCamEyeX = gCsCamEyeY = gCsCamEyeZ = gCsCamAtX = gCsCamAtY = 0.0f;
+ gCsCamAtZ = -10.0f;
+ break;
+ case 2:
+ if ((gControllerPress[0].button & START_BUTTON) || (gControllerPress[1].button & START_BUTTON)) {
+ Audio_PlayPauseSfx(0);
+ D_ctx_80177868 = 3;
+ gDrawMode = DRAW_NONE;
+ Play_Setup();
+ gNextGameStateTimer = 0;
+ }
+ break;
+ case 3:
+ if (gNextGameStateTimer == 0) {
+ gPlayState = PLAY_UPDATE;
+ }
+ break;
+ }
+}