diff options
| author | cadmic <cadmic24@gmail.com> | 2024-09-27 13:44:35 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-27 16:44:35 -0400 |
| commit | c6160e1980d9ff5e048eb57ee8e55bd755bcb891 (patch) | |
| tree | f8ca33b65ea490dbaf57a04eb1b62ef486fc5687 /src/code/game.c | |
| parent | 86a146db24c1b226286e2bd93063c8a65413efc6 (diff) | |
[ntsc-1.0/1.1] Match PAL 1.0 viconfig changes (#2231)
* [ntsc-1.0/1.1] Match viconfig changes
* SREG(48) -> R_VI_MODE_EDIT_STATE
Diffstat (limited to 'src/code/game.c')
| -rw-r--r-- | src/code/game.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/code/game.c b/src/code/game.c index 45362fb58..2b665e0d8 100644 --- a/src/code/game.c +++ b/src/code/game.c @@ -2,6 +2,7 @@ #include "fault.h" #include "libc64/os_malloc.h" #include "terminal.h" +#include "versions.h" #if PLATFORM_N64 #include "n64dd.h" #endif @@ -281,6 +282,14 @@ void GameState_Update(GameState* gameState) { func_800C4344(gameState); +#if OOT_VERSION < PAL_1_0 + if (R_VI_MODE_EDIT_STATE != VI_MODE_EDIT_STATE_INACTIVE) { + ViMode_Update(&sViMode, &gameState->input[0]); + gfxCtx->viMode = &sViMode.customViMode; + gfxCtx->viFeatures = sViMode.viFeatures; + } +#endif + #if OOT_DEBUG if (SREG(63) == 1u) { if (R_VI_MODE_EDIT_STATE < VI_MODE_EDIT_STATE_INACTIVE) { |
