From 19179b30326617ea66dce39da4adee0d7ab7cfad Mon Sep 17 00:00:00 2001 From: Michael <15317421+ActualMandM@users.noreply.github.com> Date: Thu, 10 Mar 2022 10:56:47 -0800 Subject: [PATCH] [Splatoon] Don't stretch HUD for 16:10 --- src/Splatoon/Graphics/patches.txt | 14 ++++++++------ src/Splatoon/Graphics/rules.txt | 9 +++++++++ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/Splatoon/Graphics/patches.txt b/src/Splatoon/Graphics/patches.txt index 5f7b5681..fac09d77 100644 --- a/src/Splatoon/Graphics/patches.txt +++ b/src/Splatoon/Graphics/patches.txt @@ -4,16 +4,17 @@ moduleMatches = 0xF7A78809 #rodata constants 0x1004364C = .float $width/$height -0x10124BE0 = .float $width/$height +0x10124BE0 = .float (($ultrawideHUD == 0) * ($gameWidth/$gameHeight)) + (($ultrawideHUD == 1) * ($width/$height)) 0x10158FE0 = .float $width/$height 0x10160454 = .float $width/$height _aspectAddr = 0x1004364C +_hudAspectAddr = 0x10124BE0 #patches -0x028B1910 = lis r29, _aspectAddr@ha ;hud -0x028B1914 = lfs f13, _aspectAddr@l(r29) ;hud +0x028B1910 = lis r29, _hudAspectAddr@ha ;hud +0x028B1914 = lfs f13, _hudAspectAddr@l(r29) ;hud 0x02014864 = lis r4, _aspectAddr@ha ;master ar 0x0201486C = lfs f9, _aspectAddr@l(r4) ;master ar @@ -28,16 +29,17 @@ moduleMatches = 0x08ED6677 #rodata constants 0x1003C670 = .float $width/$height -0x101092B0 = .float $width/$height +0x101092B0 = .float (($ultrawideHUD == 0) * ($gameWidth/$gameHeight)) + (($ultrawideHUD == 1) * ($width/$height)) 0x10144564 = .float $width/$height 0x1014A514 = .float $width/$height _aspectAddr = 0x1003C670 +_hudAspectAddr = 0x101092B0 #patches -0x027E6400 = lis r29, _aspectAddr@ha ;hud -0x027E6404 = lfs f13, _aspectAddr@l(r29) ;hud +0x027E6400 = lis r29, _hudAspectAddr@ha ;hud +0x027E6404 = lfs f13, _hudAspectAddr@l(r29) ;hud 0x02015690 = lis r4, _aspectAddr@ha ;master AR 0x02015698 = lfs f9, _aspectAddr@l(r4) diff --git a/src/Splatoon/Graphics/rules.txt b/src/Splatoon/Graphics/rules.txt index ab5112bd..9279328f 100644 --- a/src/Splatoon/Graphics/rules.txt +++ b/src/Splatoon/Graphics/rules.txt @@ -17,6 +17,7 @@ $gamePadHeight = 480 $shadowQuality = 1 $anisotropy = 1 $bloom = 1 +$ultrawideHUD:int = 1 # TV Resolution @@ -108,48 +109,56 @@ name = 1280x800 (16:10) category = TV Resolution $width = 1280 $height = 800 +$ultrawideHUD:int = 0 [Preset] name = 1440x900 (16:10) category = TV Resolution $width = 1440 $height = 900 +$ultrawideHUD:int = 0 [Preset] name = 1680x1050 (16:10) category = TV Resolution $width = 1680 $height = 1050 +$ultrawideHUD:int = 0 [Preset] name = 1920x1200 (16:10) category = TV Resolution $width = 1920 $height = 1200 +$ultrawideHUD:int = 0 [Preset] name = 2560x1600 (16:10) category = TV Resolution $width = 2560 $height = 1600 +$ultrawideHUD:int = 0 [Preset] name = 2880x1800 (16:10) category = TV Resolution $width = 2880 $height = 1800 +$ultrawideHUD:int = 0 [Preset] name = 3840x2400 (16:10) category = TV Resolution $width = 3840 $height = 2400 +$ultrawideHUD:int = 0 [Preset] name = 5120x3200 (16:10) category = TV Resolution $width = 5120 $height = 3200 +$ultrawideHUD:int = 0 # Gamepad Resolution