summaryrefslogtreecommitdiff
path: root/soh/src/code/code_800EC960.c
diff options
context:
space:
mode:
authorMalkierian <malkierian@gmail.com>2024-04-25 17:31:28 -0700
committerGitHub <noreply@github.com>2024-04-26 00:31:28 +0000
commit56d8dd6d8b754e2f77aa6f27169f58b73701172a (patch)
treeec0e6a0c2b866077ee77dbe0560bfa8fea658bd0 /soh/src/code/code_800EC960.c
parenta4fb67745a187e564b215f2ed98c85bdfeb3d78f (diff)
All MenuBar enhancement CVars done. (#4064)
Diffstat (limited to 'soh/src/code/code_800EC960.c')
-rw-r--r--soh/src/code/code_800EC960.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/soh/src/code/code_800EC960.c b/soh/src/code/code_800EC960.c
index c7238cb39..95387b448 100644
--- a/soh/src/code/code_800EC960.c
+++ b/soh/src/code/code_800EC960.c
@@ -1608,7 +1608,7 @@ void func_800ED458(s32 arg0) {
if (D_80130F3C != 0 && sOcarinaDropInputTimer != 0) {
sOcarinaDropInputTimer--;
- if (!CVarGetInteger("gDpadNoDropOcarinaInput", 0)) {
+ if (!CVarGetInteger(CVAR_ENHANCEMENT("DpadNoDropOcarinaInput"), 0)) {
return;
}
}
@@ -2067,15 +2067,15 @@ void Audio_OcaMemoryGameStart(u8 minigameRound) {
u8 i;
// #region SOH [Enhancement]
- if (CVarGetInteger("gCustomizeOcarinaGame", 0)) {
+ if (CVarGetInteger(CVAR_ENHANCEMENT("CustomizeOcarinaGame"), 0)) {
u8 startingNotes = 3;
- u8 roundOneCount = CVarGetInteger("gOcarinaGameRoundOneNotes", 5);
- u8 roundTwoCount = CVarGetInteger("gOcarinaGameRoundTwoNotes", 6);
- u8 roundThreeCount = CVarGetInteger("gOcarinaGameRoundThreeNotes", 8);
+ u8 roundOneCount = CVarGetInteger(CVAR_ENHANCEMENT("OcarinaGame.RoundOneNotes"), 5);
+ u8 roundTwoCount = CVarGetInteger(CVAR_ENHANCEMENT("OcarinaGame.RoundTwoNotes"), 6);
+ u8 roundThreeCount = CVarGetInteger(CVAR_ENHANCEMENT("OcarinaGame.RoundThreeNotes"), 8);
u8 modMinigameNoteCnts[] = { roundOneCount, roundTwoCount, roundThreeCount };
- startingNotes = CVarGetInteger("gOcarinaGameStartingNotes", 3);
+ startingNotes = CVarGetInteger(CVAR_ENHANCEMENT("OcarinaGame.StartingNotes"), 3);
if (minigameRound > 2) {
minigameRound = 2;
@@ -2118,9 +2118,9 @@ s32 Audio_OcaMemoryGameGenNote(void) {
}
// #region SOH [Enhancement]
- if (CVarGetInteger("gCustomizeOcarinaGame", 0)) {
+ if (CVarGetInteger(CVAR_ENHANCEMENT("CustomizeOcarinaGame"), 0)) {
int noteSpeed = 0x2D;
- noteSpeed = noteSpeed / CVarGetInteger("gOcarinaGameNoteSpeed", 1);
+ noteSpeed = noteSpeed / CVarGetInteger(CVAR_ENHANCEMENT("OcarinaGame.NoteSpeed"), 1);
sOcarinaSongs[OCARINA_SONG_MEMORY_GAME][sOcaMinigameAppendPos].noteIdx = rndNote;
sOcarinaSongs[OCARINA_SONG_MEMORY_GAME][sOcaMinigameAppendPos].unk_02 = noteSpeed;