Skip to content

Commit

Permalink
[MK8] Add support for v81/v4.2 update
Browse files Browse the repository at this point in the history
Also ported the patches from the legacy Cemuhook format to the Cemu patches format.
  • Loading branch information
Crementif committed Aug 3, 2023
1 parent 9433470 commit d803646
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 117 deletions.
68 changes: 68 additions & 0 deletions src/MarioKart8/Graphics/patch_AspectRatio.asm
@@ -0,0 +1,68 @@
[MK8_AspectRatio_Shared]
moduleMatches = 0x9F0A90B7,0xD09700CE,0x1D398493,0xBA6B1E20,0x62A5F023,0x2A2DC82C

.origin = codecave

aspectRatio:
.float ((($gameHeight/$height)*$width)/$gameWidth)

scaleAspectRatioCalc:
fdivs f9, f13, f12
lis r7, aspectRatio@ha
lfs f12, aspectRatio@l(r7)
fmuls f7, f9, f12
blr


[MK8_AspectRatio_V42]
moduleMatches = 0x9F0A90B7

0x024AEF70 = bla scaleAspectRatioCalc

0x100C359C = .float ($width/$height)
0x10121E30 = .float ($width/$height)


[MK8_AspectRatio_V41]
moduleMatches = 0xD09700CE

0x024AEBEC = bla scaleAspectRatioCalc

0x100C359C = .float ($width/$height)
0x10121E30 = .float ($width/$height)


[MK8_AspectRatio_V4]
moduleMatches = 0x1D398493

0x024AEBEC = bla scaleAspectRatioCalc

0x100C359C = .float ($width/$height)
0x10121D30 = .float ($width/$height)


[MK8_AspectRatio_V3]
moduleMatches = 0xBA6B1E20

0x024642E8 = bla scaleAspectRatioCalc

0x100AC25C = .float ($width/$height)
0x1010A730 = .float ($width/$height)


[MK8_AspectRatio_V2]
moduleMatches = 0x62A5F023

0x024376D4 = bla scaleAspectRatioCalc

0x1009E9DC = .float ($width/$height)
0x100FC030 = .float ($width/$height)


[MK8_AspectRatio_V1]
moduleMatches = 0x2A2DC82C

0x02416760 = bla scaleAspectRatioCalc

0x10097D94 = .float ($width/$height)
0x100F3430 = .float ($width/$height)
10 changes: 10 additions & 0 deletions src/MarioKart8/Graphics/patch_DisableFXAA.asm
@@ -0,0 +1,10 @@
[MK8_DisableFXAA_V42]
moduleMatches = 0x9F0A90B7

0x027DF528 = blr


[MK8_DisableFXAA_V41]
moduleMatches = 0xD09700CE

0x027DF2F4 = blr
4 changes: 4 additions & 0 deletions src/MarioKart8/Graphics/patch_LevelOfDetail.asm
@@ -0,0 +1,4 @@
[MK8_LevelOfDetail_V42_V41]
moduleMatches = 0x9F0A90B7,0xD09700CE

0x10121DF0 = .float $levelOfDetail
114 changes: 0 additions & 114 deletions src/MarioKart8/Graphics/patches.txt

This file was deleted.

10 changes: 10 additions & 0 deletions src/MarioKart8/Mods/60FPSMultiplayer/patch_60FPSFullDraw.asm
@@ -0,0 +1,10 @@
[MK8_60FPSFullDraw_V42]
moduleMatches = 0x9F0A90B7

0x024AF384 = b .+0x54


[MK8_60FPSFullDraw_V41]
moduleMatches = 0xD09700CE

0x024AF000 = b .+0x54
3 changes: 0 additions & 3 deletions src/MarioKart8/Mods/60FPSMultiplayer/patches.txt

This file was deleted.

0 comments on commit d803646

Please sign in to comment.