|
1 | 1 | #include <libultraship/bridge.h>
|
2 | 2 | #include <string>
|
| 3 | +#include "soh/OTRGlobals.h" |
3 | 4 |
|
4 | 5 | extern "C" {
|
5 | 6 | #include <libultraship/libultra.h>
|
@@ -81,7 +82,7 @@ void PatchDekuStickTextureOverflow() {
|
81 | 82 | const char* dlist = gLinkChildLinkDekuStickDL;
|
82 | 83 | int start = 5;
|
83 | 84 |
|
84 |
| - if (!CVarGetInteger("gFixTexturesOOB", 0)) { |
| 85 | + if (!CVarGetInteger(CVAR_ENHANCEMENT("FixTexturesOOB"), 0)) { |
85 | 86 | // Unpatch the other texture fix
|
86 | 87 | for (size_t i = 0; i < 7; i++) {
|
87 | 88 | int instruction = start + (i == 0 ? 0 : i + 1);
|
@@ -121,7 +122,7 @@ void PatchFreezardTextureOverflow() {
|
121 | 122 | char patchNameBuf[24];
|
122 | 123 |
|
123 | 124 | // Patch using custom overflowed texture
|
124 |
| - if (!CVarGetInteger("gFixTexturesOOB", 0)) { |
| 125 | + if (!CVarGetInteger(CVAR_ENHANCEMENT("FixTexturesOOB"), 0)) { |
125 | 126 | // Unpatch the other texture fix
|
126 | 127 | for (size_t i = 0; i < 7; i++) {
|
127 | 128 | int instruction = start + (i == 0 ? 0 : i + 1);
|
@@ -163,7 +164,7 @@ void PatchIronKnuckleTextureOverflow() {
|
163 | 164 | // Until this is solved, Iron Knuckle will be hardcoded to always display with the "authentic" texture fix
|
164 | 165 |
|
165 | 166 | // Patch using custom overflowed texture
|
166 |
| - // if (!CVarGetInteger("gFixTexturesOOB", 0)) { |
| 167 | + // if (!CVarGetInteger(CVAR_ENHANCEMENT("FixTexturesOOB"), 0)) { |
167 | 168 | // Unpatch the other texture fix
|
168 | 169 | for (size_t i = 0; i < 7; i++) {
|
169 | 170 | int instruction = start + (i == 0 ? 0 : i + 1);
|
|
0 commit comments