Skip to content

Commit a047745

Browse files
committed
update cvars
1 parent ac1f438 commit a047745

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

soh/soh/SohMenuBar.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ void DrawEnhancementsMenu() {
13711371
UIWidgets::Tooltip("Restore a bug from NTSC 1.0 that allows bypassing Bongo Bongo's intro cutscene to quickly kill him");
13721372
UIWidgets::PaddedEnhancementCheckbox("Original RBA Values", CVAR_ENHANCEMENT("RestoreRBAValues"), true, false);
13731373
UIWidgets::Tooltip("Restores the original outcomes when performing Reverse Bottle Adventure.");
1374-
UIWidgets::PaddedEnhancementCheckbox("Early Eyeball Frog", "gRestorations.EarlyEyeballFrog", true, false);
1374+
UIWidgets::PaddedEnhancementCheckbox("Early Eyeball Frog", CVAR_ENHANCEMENT("EarlyEyeballFrog"), true, false);
13751375
UIWidgets::Tooltip("Restores a bug from NTSC 1.0/1.1 that allows you to obtain the eyeball frog from King Zora instead of the Zora Tunic by holding shield.");
13761376

13771377
ImGui::EndMenu();

soh/src/overlays/actors/ovl_En_Kz/z_en_kz.c

+11-11
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ s16 func_80A9C6C0(PlayState* play, Actor* thisx) {
128128

129129
switch (Message_GetState(&play->msgCtx)) {
130130
case TEXT_STATE_DONE:
131-
if (CVarGetInteger("gRestorations.EarlyEyeballFrog", 0)) {
131+
if (CVarGetInteger(CVAR_ENHANCEMENT("EarlyEyeballFrog"), 0)) {
132132
if (Message_ShouldAdvance(play)) {
133133
ret = NPC_TALK_STATE_ITEM_GIVEN;
134134
}
@@ -149,7 +149,7 @@ s16 func_80A9C6C0(PlayState* play, Actor* thisx) {
149149
}
150150
break;
151151
case TEXT_STATE_CLOSING:
152-
if (CVarGetInteger("gRestorations.EarlyEyeballFrog", 0)) {
152+
if (CVarGetInteger(CVAR_ENHANCEMENT("EarlyEyeballFrog"), 0)) {
153153
ret = NPC_TALK_STATE_IDLE;
154154
switch (this->actor.textId) {
155155
case 0x4012:
@@ -182,8 +182,8 @@ s16 func_80A9C6C0(PlayState* play, Actor* thisx) {
182182
break;
183183
}
184184
if (this->actor.textId == 0x4014) {
185-
if (play->msgCtx.choiceIndex == 0 && (CVarGetInteger("gRestorations.EarlyEyeballFrog", 0) && this->actor.textId == 0x4014)) {
186-
if (!CVarGetInteger("gRestorations.EarlyEyeballFrog", 0)) {
185+
if (play->msgCtx.choiceIndex == 0 && (CVarGetInteger(CVAR_ENHANCEMENT("EarlyEyeballFrog"), 0) && this->actor.textId == 0x4014)) {
186+
if (!CVarGetInteger(CVAR_ENHANCEMENT("EarlyEyeballFrog"), 0)) {
187187
EnKz_SetupGetItem(this, play);
188188
}
189189
ret = NPC_TALK_STATE_ACTION;
@@ -231,7 +231,7 @@ s32 func_80A9C95C(PlayState* play, EnKz* this, s16* talkState, f32 unkf, NpcGetT
231231
return 1;
232232
}
233233

234-
if (!CVarGetInteger("gRestorations.EarlyEyeballFrog", 0)) {
234+
if (!CVarGetInteger(CVAR_ENHANCEMENT("EarlyEyeballFrog"), 0)) {
235235
if (*talkState != NPC_TALK_STATE_IDLE) {
236236
*talkState = updateTalkState(play, &this->actor);
237237
return 0;
@@ -252,7 +252,7 @@ s32 func_80A9C95C(PlayState* play, EnKz* this, s16* talkState, f32 unkf, NpcGetT
252252
return 0;
253253
}
254254

255-
if (CVarGetInteger("gRestorations.EarlyEyeballFrog", 0)) {
255+
if (CVarGetInteger(CVAR_ENHANCEMENT("EarlyEyeballFrog"), 0)) {
256256
if (*talkState != NPC_TALK_STATE_IDLE) {
257257
*talkState = updateTalkState(play, &this->actor);
258258
return 0;
@@ -274,7 +274,7 @@ s32 func_80A9C95C(PlayState* play, EnKz* this, s16* talkState, f32 unkf, NpcGetT
274274
void func_80A9CB18(EnKz* this, PlayState* play) {
275275
Player* player = GET_PLAYER(play);
276276

277-
if (CVarGetInteger("gRestorations.EarlyEyeballFrog", 0)) {
277+
if (CVarGetInteger(CVAR_ENHANCEMENT("EarlyEyeballFrog"), 0)) {
278278
f32 yaw;
279279
yaw = Math_Vec3f_Yaw(&this->actor.home.pos, &player->actor.world.pos);
280280
yaw -= this->actor.shape.rot.y;
@@ -307,13 +307,13 @@ void func_80A9CB18(EnKz* this, PlayState* play) {
307307
this->actor.textId = 0x4014;
308308
this->sfxPlayed = false;
309309
player->actor.textId = this->actor.textId;
310-
if (!CVarGetInteger("gRestorations.EarlyEyeballFrog", 0)) {
310+
if (!CVarGetInteger(CVAR_ENHANCEMENT("EarlyEyeballFrog"), 0)) {
311311
this->isTrading = true;
312312
}
313313
return;
314314
}
315315
}
316-
if (!CVarGetInteger("gRestorations.EarlyEyeballFrog", 0)) {
316+
if (!CVarGetInteger(CVAR_ENHANCEMENT("EarlyEyeballFrog"), 0)) {
317317
this->isTrading = false;
318318
}
319319
if (Flags_GetInfTable(INFTABLE_139)) {
@@ -482,7 +482,7 @@ void EnKz_StopMweep(EnKz* this, PlayState* play) {
482482

483483
void EnKz_Wait(EnKz* this, PlayState* play) {
484484
if (this->interactInfo.talkState == NPC_TALK_STATE_ACTION) {
485-
if (CVarGetInteger("gRestorations.EarlyEyeballFrog", 0)) {
485+
if (CVarGetInteger(CVAR_ENHANCEMENT("EarlyEyeballFrog"), 0)) {
486486
this->interactInfo.talkState = NPC_TALK_STATE_IDLE;
487487
}
488488
this->actionFunc = EnKz_SetupGetItem;
@@ -511,7 +511,7 @@ void EnKz_SetupGetItem(EnKz* this, PlayState* play) {
511511
Flags_SetRandomizerInf(RAND_INF_ADULT_TRADES_ZD_TRADE_PRESCRIPTION);
512512
}
513513
} else {
514-
if (CVarGetInteger("gRestorations.EarlyEyeballFrog", 0)) {
514+
if (CVarGetInteger(CVAR_ENHANCEMENT("EarlyEyeballFrog"), 0)) {
515515
getItemId = func_8002F368(play) == EXCH_ITEM_PRESCRIPTION ? GI_FROG : GI_TUNIC_ZORA;
516516
} else {
517517
getItemId = this->isTrading ? GI_FROG : GI_TUNIC_ZORA;

0 commit comments

Comments
 (0)