From e68c20cbad2be06910f48171ff4e0abc9cfa8048 Mon Sep 17 00:00:00 2001 From: getdls Date: Wed, 31 Oct 2018 23:01:21 +0100 Subject: [PATCH] [XCX] Patch and rules fixing 21:9, 48:9 - No shader fixes yet --- Source/XenobladeX/patches.txt | 65 +++++++++++++++++++++++++++++ Source/XenobladeX/rules.txt | 77 +++++++++++++++++++++++++++++++++++ 2 files changed, 142 insertions(+) create mode 100644 Source/XenobladeX/patches.txt diff --git a/Source/XenobladeX/patches.txt b/Source/XenobladeX/patches.txt new file mode 100644 index 00000000..fe991ab6 --- /dev/null +++ b/Source/XenobladeX/patches.txt @@ -0,0 +1,65 @@ +[XCXAspectV100U_V101U] +moduleMatches = 2878856811, 0x676EB33E + +# rodata constants +0x1003E754 = .float $width/$height +_aspectAddr = 0x1003E754 + +# 3d Aspect +0x031608E4 = lis r7, _aspectAddr@ha +0x031608E8 = lfs f13, _aspectAddr@l(r7) + +[XCXAspectV102U] +moduleMatches = 0x30B6E091 + +#rodata constants +0x1003E754 = .float $width/$height +_aspectAddr = 0x1003E754 + +# 3d Aspect +0x03160A64 = lis r7, _aspectAddr@ha +0x03160A68 = lfs f13, _aspectAddr@l(r7) + +[XCXAspectV100E_V101E] +moduleMatches = 0x218F6E07, 0xF882D5CF + +# rodata constants +0x1003E754 = .float $width/$height +_aspectAddr = 0x1003E754 + +# 3d Aspect +0x03160AE4 = lis r7, _aspectAddr@ha +0x03160AE8 = lfs f13, _aspectAddr@l(r7) + +[XCXAspectV100J] +moduleMatches = 0x785CA8A9 + +#rodata constants +0x1003E6C4 = .float $width/$height +_aspectAddr = 0x1003E6C4 + +# 3d Aspect +0x0315687C = lis r7, _aspectAddr@ha +0x03156880 = lfs f13, _aspectAddr@l(r7) + +[XCXAspectV101J] +moduleMatches = 0x8780C48F + +#rodata constants +0x1003E714 = .float $width/$height +_aspectAddr = 0x1003E714 + +# 3d Aspect +0x0315BBA4 = lis r7, _aspectAddr@ha +0x0315BBA8 = lfs f13, _aspectAddr@l(r7) + +[XCXAspectV102J] +moduleMatches = 0x7672271D + +#rodata constants +0x1003E714 = .float $width/$height +_aspectAddr = 0x1003E714 + +# 3d Aspect +0x0315BE7C = lis r7, _aspectAddr@ha +0x0315BE80 = lfs f13, _aspectAddr@l(r7) diff --git a/Source/XenobladeX/rules.txt b/Source/XenobladeX/rules.txt index 55fa5038..68f648b2 100644 --- a/Source/XenobladeX/rules.txt +++ b/Source/XenobladeX/rules.txt @@ -27,6 +27,17 @@ $dither = 0.01 $scaleShader = 1.0 $scaleBlur = 0.05 +[Preset] +name = 3840x720 (48:9) +$width = 3840 +$height = 720 +$gameWidth = 1280 +$gameHeight = 720 +$internalRes = 1.0 +$dither = 0.01 +$scaleShader = 1.0 +$scaleBlur = 0.05 + // Quality [Preset] @@ -40,6 +51,28 @@ $dither = 0.15 $scaleShader = 1.0 $scaleBlur = 0.5 +[Preset] +name = 2560x1080 (21:9 HD) +$width = 2560 +$height = 1080 +$gameWidth = 1280 +$gameHeight = 720 +$internalRes = 1.0 +$dither = 0.15 +$scaleShader = 1.0 +$scaleBlur = 0.5 + +[Preset] +name = 5760x1080 (48:9 HD) +$width = 2560 +$height = 1080 +$gameWidth = 1280 +$gameHeight = 720 +$internalRes = 1.0 +$dither = 0.15 +$scaleShader = 1.0 +$scaleBlur = 0.5 + [Preset] name = 1600x900 $width = 1600 @@ -62,6 +95,28 @@ $dither = 0.1 $scaleShader = 1.0 $scaleBlur = 0.5 +[Preset] +name = 3440x1440 (21:9) +$width = 3440 +$height = 1440 +$gameWidth = 1280 +$gameHeight = 720 +$internalRes = 1.0 +$dither = 0.1 +$scaleShader = 1.0 +$scaleBlur = 0.5 + +[Preset] +name = 7680x1440 (48:9) +$width = 7680 +$height = 1440 +$gameWidth = 1280 +$gameHeight = 720 +$internalRes = 1.0 +$dither = 0.1 +$scaleShader = 1.0 +$scaleBlur = 0.5 + [Preset] name = 2560x1440 (Native x2) x2 sub scaling $width = 2560 @@ -95,6 +150,28 @@ $dither = 0.2 $scaleShader = 1.0 $scaleBlur = 1.0 +[Preset] +name = 5120x2160 (4k 21:9) +$width = 5120 +$height = 2160 +$gameWidth = 1280 +$gameHeight = 720 +$internalRes = 1.0 +$dither = 0.2 +$scaleShader = 1.0 +$scaleBlur = 1.0 + +[Preset] +name = 5120x2160 (4k 48:9) +$width = 11520 +$height = 2160 +$gameWidth = 1280 +$gameHeight = 720 +$internalRes = 1.0 +$dither = 0.2 +$scaleShader = 1.0 +$scaleBlur = 1.0 + [Preset] name = 3840x2160 (4k - Native x3) x2 sub scaling $width = 3840