Skip to content

Commit d803646

Browse files
committed
[MK8] Add support for v81/v4.2 update
Also ported the patches from the legacy Cemuhook format to the Cemu patches format.
1 parent 9433470 commit d803646

File tree

6 files changed

+92
-117
lines changed

6 files changed

+92
-117
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
[MK8_AspectRatio_Shared]
2+
moduleMatches = 0x9F0A90B7,0xD09700CE,0x1D398493,0xBA6B1E20,0x62A5F023,0x2A2DC82C
3+
4+
.origin = codecave
5+
6+
aspectRatio:
7+
.float ((($gameHeight/$height)*$width)/$gameWidth)
8+
9+
scaleAspectRatioCalc:
10+
fdivs f9, f13, f12
11+
lis r7, aspectRatio@ha
12+
lfs f12, aspectRatio@l(r7)
13+
fmuls f7, f9, f12
14+
blr
15+
16+
17+
[MK8_AspectRatio_V42]
18+
moduleMatches = 0x9F0A90B7
19+
20+
0x024AEF70 = bla scaleAspectRatioCalc
21+
22+
0x100C359C = .float ($width/$height)
23+
0x10121E30 = .float ($width/$height)
24+
25+
26+
[MK8_AspectRatio_V41]
27+
moduleMatches = 0xD09700CE
28+
29+
0x024AEBEC = bla scaleAspectRatioCalc
30+
31+
0x100C359C = .float ($width/$height)
32+
0x10121E30 = .float ($width/$height)
33+
34+
35+
[MK8_AspectRatio_V4]
36+
moduleMatches = 0x1D398493
37+
38+
0x024AEBEC = bla scaleAspectRatioCalc
39+
40+
0x100C359C = .float ($width/$height)
41+
0x10121D30 = .float ($width/$height)
42+
43+
44+
[MK8_AspectRatio_V3]
45+
moduleMatches = 0xBA6B1E20
46+
47+
0x024642E8 = bla scaleAspectRatioCalc
48+
49+
0x100AC25C = .float ($width/$height)
50+
0x1010A730 = .float ($width/$height)
51+
52+
53+
[MK8_AspectRatio_V2]
54+
moduleMatches = 0x62A5F023
55+
56+
0x024376D4 = bla scaleAspectRatioCalc
57+
58+
0x1009E9DC = .float ($width/$height)
59+
0x100FC030 = .float ($width/$height)
60+
61+
62+
[MK8_AspectRatio_V1]
63+
moduleMatches = 0x2A2DC82C
64+
65+
0x02416760 = bla scaleAspectRatioCalc
66+
67+
0x10097D94 = .float ($width/$height)
68+
0x100F3430 = .float ($width/$height)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[MK8_DisableFXAA_V42]
2+
moduleMatches = 0x9F0A90B7
3+
4+
0x027DF528 = blr
5+
6+
7+
[MK8_DisableFXAA_V41]
8+
moduleMatches = 0xD09700CE
9+
10+
0x027DF2F4 = blr
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[MK8_LevelOfDetail_V42_V41]
2+
moduleMatches = 0x9F0A90B7,0xD09700CE
3+
4+
0x10121DF0 = .float $levelOfDetail

src/MarioKart8/Graphics/patches.txt

Lines changed: 0 additions & 114 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[MK8_60FPSFullDraw_V42]
2+
moduleMatches = 0x9F0A90B7
3+
4+
0x024AF384 = b .+0x54
5+
6+
7+
[MK8_60FPSFullDraw_V41]
8+
moduleMatches = 0xD09700CE
9+
10+
0x024AF000 = b .+0x54

src/MarioKart8/Mods/60FPSMultiplayer/patches.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)