Skip to content

Commit 56d8dd6

Browse files
authored
All MenuBar enhancement CVars done. (HarbourMasters#4064)
1 parent a4fb677 commit 56d8dd6

File tree

123 files changed

+1203
-1200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+1203
-1200
lines changed

soh/soh/Enhancements/cosmetics/CosmeticsEditor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ void Draw_Placements(){
12481248
ImGui::EndTable();
12491249
}
12501250
}
1251-
if (CVarGetInteger("gVisualAgony",0) && ImGui::CollapsingHeader("Visual stone of agony position")) {
1251+
if (CVarGetInteger(CVAR_ENHANCEMENT("VisualAgony"),0) && ImGui::CollapsingHeader("Visual stone of agony position")) {
12521252
if (ImGui::BeginTable("tabledvisualstoneofagony", 1, FlagsTable)) {
12531253
ImGui::TableSetupColumn("Visual stone of agony settings", FlagsCell, TablesCellsWidth);
12541254
Table_InitHeader(false);

soh/soh/Enhancements/cosmetics/authenticGfxPatches.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <libultraship/bridge.h>
22
#include <string>
3+
#include "soh/OTRGlobals.h"
34

45
extern "C" {
56
#include <libultraship/libultra.h>
@@ -81,7 +82,7 @@ void PatchDekuStickTextureOverflow() {
8182
const char* dlist = gLinkChildLinkDekuStickDL;
8283
int start = 5;
8384

84-
if (!CVarGetInteger("gFixTexturesOOB", 0)) {
85+
if (!CVarGetInteger(CVAR_ENHANCEMENT("FixTexturesOOB"), 0)) {
8586
// Unpatch the other texture fix
8687
for (size_t i = 0; i < 7; i++) {
8788
int instruction = start + (i == 0 ? 0 : i + 1);
@@ -121,7 +122,7 @@ void PatchFreezardTextureOverflow() {
121122
char patchNameBuf[24];
122123

123124
// Patch using custom overflowed texture
124-
if (!CVarGetInteger("gFixTexturesOOB", 0)) {
125+
if (!CVarGetInteger(CVAR_ENHANCEMENT("FixTexturesOOB"), 0)) {
125126
// Unpatch the other texture fix
126127
for (size_t i = 0; i < 7; i++) {
127128
int instruction = start + (i == 0 ? 0 : i + 1);
@@ -163,7 +164,7 @@ void PatchIronKnuckleTextureOverflow() {
163164
// Until this is solved, Iron Knuckle will be hardcoded to always display with the "authentic" texture fix
164165

165166
// Patch using custom overflowed texture
166-
// if (!CVarGetInteger("gFixTexturesOOB", 0)) {
167+
// if (!CVarGetInteger(CVAR_ENHANCEMENT("FixTexturesOOB"), 0)) {
167168
// Unpatch the other texture fix
168169
for (size_t i = 0; i < 7; i++) {
169170
int instruction = start + (i == 0 ? 0 : i + 1);

soh/soh/Enhancements/debugconsole.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ static bool FWHandler(std::shared_ptr<LUS::Console> Console, const std::vector<s
471471
return 0;
472472
break;
473473
case 2: //backup
474-
if (CVarGetInteger("gBetterFW", 0)) {
474+
if (CVarGetInteger(CVAR_ENHANCEMENT("BetterFarore"), 0)) {
475475
gSaveContext.fw = gSaveContext.backupFW;
476476
gSaveContext.fw.set = 1;
477477
INFO_MESSAGE("[SOH] Backup FW data copied! Reload scene to take effect.");

soh/soh/Enhancements/debugger/MessageViewer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void FindMessage(PlayState* play, const uint16_t textId, const uint8_t language)
121121
Font* font;
122122
u16 bufferId = textId;
123123
// Use the better owl message if better owl is enabled
124-
if (CVarGetInteger("gBetterOwl", 0) != 0 && (bufferId == 0x2066 || bufferId == 0x607B ||
124+
if (CVarGetInteger(CVAR_ENHANCEMENT("BetterOwl"), 0) != 0 && (bufferId == 0x2066 || bufferId == 0x607B ||
125125
bufferId == 0x10C2 || bufferId == 0x10C6 || bufferId == 0x206A))
126126
{
127127
bufferId = 0x71B3;

soh/soh/Enhancements/enemyrandomizer.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "soh/Enhancements/randomizer/3drando/random.hpp"
55
#include "soh/Enhancements/enhancementTypes.h"
66
#include "variables.h"
7+
#include "soh/OTRGlobals.h"
78

89
extern "C" {
910
#include <z64.h>
@@ -233,7 +234,7 @@ extern "C" uint8_t GetRandomizedEnemy(PlayState* play, int16_t *actorId, f32 *po
233234
}
234235

235236
EnemyEntry GetRandomizedEnemyEntry(uint32_t seed) {
236-
if (CVarGetInteger("gRandomizedEnemies", ENEMY_RANDOMIZER_OFF) == ENEMY_RANDOMIZER_RANDOM_SEEDED) {
237+
if (CVarGetInteger(CVAR_ENHANCEMENT("RandomizedEnemies"), ENEMY_RANDOMIZER_OFF) == ENEMY_RANDOMIZER_RANDOM_SEEDED) {
237238
uint32_t finalSeed = seed + (IS_RANDO ? gSaveContext.finalSeed : gSaveContext.sohStats.fileCreatedAt);
238239
Random_Init(finalSeed);
239240
}

soh/soh/Enhancements/gameplaystats.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ extern "C" {
1414
#include <libultraship/bridge.h>
1515
#include <libultraship/libultraship.h>
1616
#include "soh/Enhancements/enhancementTypes.h"
17+
#include "soh/OTRGlobals.h"
1718

1819
extern "C" {
1920
#include <z64.h>
@@ -538,7 +539,7 @@ void DrawGameplayStatsCountsTab() {
538539
GameplayStatsRow("Sword Swings:", formatIntGameplayStat(gSaveContext.sohStats.count[COUNT_SWORD_SWINGS]));
539540
GameplayStatsRow("Steps Taken:", formatIntGameplayStat(gSaveContext.sohStats.count[COUNT_STEPS]));
540541
// If using MM Bunny Hood enhancement, show how long it's been equipped (not counting pause time)
541-
if (CVarGetInteger("gMMBunnyHood", BUNNY_HOOD_VANILLA) != BUNNY_HOOD_VANILLA || gSaveContext.sohStats.count[COUNT_TIME_BUNNY_HOOD] > 0) {
542+
if (CVarGetInteger(CVAR_ENHANCEMENT("MMBunnyHood"), BUNNY_HOOD_VANILLA) != BUNNY_HOOD_VANILLA || gSaveContext.sohStats.count[COUNT_TIME_BUNNY_HOOD] > 0) {
542543
GameplayStatsRow("Bunny Hood Time:", formatTimestampGameplayStat(gSaveContext.sohStats.count[COUNT_TIME_BUNNY_HOOD] / 2));
543544
}
544545
GameplayStatsRow("Rolls:", formatIntGameplayStat(gSaveContext.sohStats.count[COUNT_ROLLS]));

0 commit comments

Comments
 (0)