Add option to Disable Black Bars Letterboxes

This commit is contained in:
Marcelo_20XX 2022-05-03 22:50:48 -04:00
commit 5f0734e8f0
2 changed files with 5 additions and 0 deletions

View file

@ -583,6 +583,7 @@ namespace SohImGui {
EnhancementCheckbox("N64 Mode", "gN64Mode");
EnhancementCheckbox("Animated Link in Pause Menu", "gPauseLiveLink");
EnhancementCheckbox("Disable Black Bars", "gDisableBlackBars");
EnhancementCheckbox("Disable LOD", "gDisableLOD");
EnhancementCheckbox("Enable 3D Dropped items", "gNewDrops");
EnhancementCheckbox("Dynamic Wallet Icon", "gDynamicWalletIcon");

View file

@ -6,6 +6,8 @@ s32 sShrinkWindowVal = 0;
s32 sShrinkWindowCurrentVal = 0;
void ShrinkWindow_SetVal(s32 value) {
if (CVar_GetS32("gDisableBlackBars", 0) != 0)
value = 0;
if (HREG(80) == 0x13 && HREG(81) == 1) {
osSyncPrintf("shrink_window_setval(%d)\n", value);
}
@ -17,6 +19,8 @@ u32 ShrinkWindow_GetVal(void) {
}
void ShrinkWindow_SetCurrentVal(s32 currentVal) {
if (CVar_GetS32("gDisableBlackBars", 0) != 0)
currentVal = 0;
if (HREG(80) == 0x13 && HREG(81) == 1) {
osSyncPrintf("shrink_window_setnowval(%d)\n", currentVal);
}