Skip to content

Commit 5b4fa36

Browse files
committed
overlays: decompile 18 RemapCharCode jump-table families (72 funcs)
45-case character-code remap switches (input 0xc0-0xec, passthrough default), duplicated across ov005/ov008/ov025/ov026. Byte-exact by reordering case labels to match mwcc's source-order body layout so the jump table offsets align.
1 parent 025d20b commit 5b4fa36

72 files changed

Lines changed: 3600 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
int func_ov005_02058988(int code) {
2+
switch (code) {
3+
case 0xc0: return 0xcc;
4+
case 0xc1: return 0xcc;
5+
case 0xc7: return 0xcd;
6+
case 0xc8: return 0xcd;
7+
case 0xd3: return 0xce;
8+
case 0xd2: return 0xce;
9+
case 0xdc: return 0xcf;
10+
case 0xc2: return 0xd6;
11+
case 0xc3: return 0xd6;
12+
case 0xc9: return 0xd7;
13+
case 0xca: return 0xd7;
14+
case 0xd4: return 0xd8;
15+
case 0xd5: return 0xd8;
16+
case 0xdd: return 0xd9;
17+
case 0xcd: return 0xe5;
18+
case 0xce: return 0xe5;
19+
case 0xd9: return 0xe6;
20+
case 0xd8: return 0xe6;
21+
case 0xcf: return 0xdf;
22+
case 0xd0: return 0xdf;
23+
case 0xdb: return 0xe0;
24+
case 0xda: return 0xe0;
25+
case 0xc4: return 0xc0;
26+
case 0xc5: return 0xc0;
27+
case 0xcb: return 0xc1;
28+
case 0xcc: return 0xc1;
29+
case 0xd7: return 0xc2;
30+
case 0xd6: return 0xc2;
31+
case 0xe0: return 0xd0;
32+
case 0xe1: return 0xd0;
33+
case 0xea: return 0xd1;
34+
case 0xe9: return 0xd1;
35+
case 0xde: return 0xe2;
36+
case 0xdf: return 0xe2;
37+
case 0xe5: return 0xda;
38+
case 0xe4: return 0xda;
39+
case 0xe2: return 0xc4;
40+
case 0xe3: return 0xc4;
41+
case 0xec: return 0xc5;
42+
case 0xeb: return 0xc5;
43+
case 0xe8: return 0xe8;
44+
case 0xe7: return 0xe8;
45+
case 0xe6: return 0xeb;
46+
case 0xc6: return 0xe9;
47+
case 0xd1: return 0xea;
48+
}
49+
return code;
50+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
int func_ov005_02058bb4(int code) {
2+
switch (code) {
3+
case 0xc0: return 0xcc;
4+
case 0xc1: return 0xcc;
5+
case 0xc7: return 0xcd;
6+
case 0xc8: return 0xcd;
7+
case 0xd3: return 0xce;
8+
case 0xd2: return 0xce;
9+
case 0xdc: return 0xcf;
10+
case 0xc2: return 0xd6;
11+
case 0xc3: return 0xd6;
12+
case 0xc9: return 0xd7;
13+
case 0xca: return 0xd7;
14+
case 0xd4: return 0xd8;
15+
case 0xd5: return 0xd8;
16+
case 0xdd: return 0xd9;
17+
case 0xcd: return 0xc1;
18+
case 0xce: return 0xc1;
19+
case 0xd9: return 0xc2;
20+
case 0xd8: return 0xc2;
21+
case 0xcf: return 0xe5;
22+
case 0xd0: return 0xe5;
23+
case 0xdb: return 0xe6;
24+
case 0xda: return 0xe6;
25+
case 0xc4: return 0xde;
26+
case 0xc5: return 0xde;
27+
case 0xcb: return 0xdf;
28+
case 0xcc: return 0xdf;
29+
case 0xd7: return 0xe0;
30+
case 0xd6: return 0xe0;
31+
case 0xe0: return 0xd0;
32+
case 0xe1: return 0xd0;
33+
case 0xea: return 0xd1;
34+
case 0xe9: return 0xd1;
35+
case 0xde: return 0xd4;
36+
case 0xdf: return 0xd4;
37+
case 0xe5: return 0xda;
38+
case 0xe4: return 0xda;
39+
case 0xe2: return 0xdc;
40+
case 0xe3: return 0xdc;
41+
case 0xec: return 0xdd;
42+
case 0xeb: return 0xdd;
43+
case 0xe8: return 0xe8;
44+
case 0xe7: return 0xe8;
45+
case 0xe6: return 0xeb;
46+
case 0xc6: return 0xe9;
47+
case 0xd1: return 0xea;
48+
}
49+
return code;
50+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
int func_ov005_02058de0(int code) {
2+
switch (code) {
3+
case 0xc0: return 0xf5;
4+
case 0xc1: return 0xf5;
5+
case 0xc7: return 0xf5;
6+
case 0xc8: return 0xf5;
7+
case 0xd3: return 0xf5;
8+
case 0xd2: return 0xf5;
9+
case 0xdc: return 0xec;
10+
case 0xc2: return 0xf5;
11+
case 0xc3: return 0xf5;
12+
case 0xc9: return 0xf5;
13+
case 0xca: return 0xf5;
14+
case 0xd4: return 0xf5;
15+
case 0xd5: return 0xf5;
16+
case 0xdd: return 0xf5;
17+
case 0xcd: return 0xf5;
18+
case 0xce: return 0xf5;
19+
case 0xd9: return 0xf5;
20+
case 0xd8: return 0xf5;
21+
case 0xcf: return 0xf5;
22+
case 0xd0: return 0xf5;
23+
case 0xdb: return 0xf5;
24+
case 0xda: return 0xf5;
25+
case 0xc4: return 0xf5;
26+
case 0xc5: return 0xf5;
27+
case 0xcb: return 0xf5;
28+
case 0xcc: return 0xf5;
29+
case 0xd7: return 0xf5;
30+
case 0xd6: return 0xf5;
31+
case 0xe0: return 0xec;
32+
case 0xe1: return 0xec;
33+
case 0xea: return 0xed;
34+
case 0xe9: return 0xed;
35+
case 0xde: return 0xf5;
36+
case 0xdf: return 0xf5;
37+
case 0xe5: return 0xec;
38+
case 0xe4: return 0xec;
39+
case 0xe2: return 0xed;
40+
case 0xe3: return 0xed;
41+
case 0xec: return 0xed;
42+
case 0xeb: return 0xed;
43+
case 0xe8: return 0xe8;
44+
case 0xe7: return 0xe8;
45+
case 0xe6: return 0xeb;
46+
case 0xc6: return 0xf5;
47+
case 0xd1: return 0xf5;
48+
}
49+
return code;
50+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
int func_ov005_0205900c(int code) {
2+
switch (code) {
3+
case 0xc0: return 0xf6;
4+
case 0xc1: return 0xf6;
5+
case 0xc7: return 0xf6;
6+
case 0xc8: return 0xf6;
7+
case 0xd3: return 0xf6;
8+
case 0xd2: return 0xf6;
9+
case 0xdc: return 0xec;
10+
case 0xc2: return 0xf6;
11+
case 0xc3: return 0xf6;
12+
case 0xc9: return 0xf6;
13+
case 0xca: return 0xf6;
14+
case 0xd4: return 0xf6;
15+
case 0xd5: return 0xf6;
16+
case 0xdd: return 0xf6;
17+
case 0xcd: return 0xf6;
18+
case 0xce: return 0xf6;
19+
case 0xd9: return 0xf6;
20+
case 0xd8: return 0xf6;
21+
case 0xcf: return 0xf6;
22+
case 0xd0: return 0xf6;
23+
case 0xdb: return 0xf6;
24+
case 0xda: return 0xf6;
25+
case 0xc4: return 0xf6;
26+
case 0xc5: return 0xf6;
27+
case 0xcb: return 0xf6;
28+
case 0xcc: return 0xf6;
29+
case 0xd7: return 0xf6;
30+
case 0xd6: return 0xf6;
31+
case 0xe0: return 0xec;
32+
case 0xe1: return 0xec;
33+
case 0xea: return 0xed;
34+
case 0xe9: return 0xed;
35+
case 0xde: return 0xf6;
36+
case 0xdf: return 0xf6;
37+
case 0xe5: return 0xec;
38+
case 0xe4: return 0xec;
39+
case 0xe2: return 0xed;
40+
case 0xe3: return 0xed;
41+
case 0xec: return 0xed;
42+
case 0xeb: return 0xed;
43+
case 0xe8: return 0xe8;
44+
case 0xe7: return 0xe8;
45+
case 0xe6: return 0xeb;
46+
case 0xc6: return 0xf6;
47+
case 0xd1: return 0xf6;
48+
}
49+
return code;
50+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
int func_ov005_02059238(int code) {
2+
switch (code) {
3+
case 0xc0: return 0xd6;
4+
case 0xc1: return 0xd6;
5+
case 0xc7: return 0xd7;
6+
case 0xc8: return 0xd7;
7+
case 0xd3: return 0xd8;
8+
case 0xd2: return 0xd8;
9+
case 0xdc: return 0xd9;
10+
case 0xc2: return 0xcc;
11+
case 0xc3: return 0xcc;
12+
case 0xc9: return 0xcd;
13+
case 0xca: return 0xcd;
14+
case 0xd4: return 0xce;
15+
case 0xd5: return 0xce;
16+
case 0xdd: return 0xcf;
17+
case 0xcd: return 0xc1;
18+
case 0xce: return 0xc1;
19+
case 0xd9: return 0xc2;
20+
case 0xd8: return 0xc2;
21+
case 0xcf: return 0xe5;
22+
case 0xd0: return 0xe5;
23+
case 0xdb: return 0xe6;
24+
case 0xda: return 0xe6;
25+
case 0xc4: return 0xde;
26+
case 0xc5: return 0xde;
27+
case 0xcb: return 0xdf;
28+
case 0xcc: return 0xdf;
29+
case 0xd7: return 0xe0;
30+
case 0xd6: return 0xe0;
31+
case 0xe0: return 0xda;
32+
case 0xe1: return 0xda;
33+
case 0xea: return 0xdb;
34+
case 0xe9: return 0xdb;
35+
case 0xde: return 0xd2;
36+
case 0xdf: return 0xd2;
37+
case 0xe5: return 0xd4;
38+
case 0xe4: return 0xd4;
39+
case 0xe2: return 0xdc;
40+
case 0xe3: return 0xdc;
41+
case 0xec: return 0xdd;
42+
case 0xeb: return 0xdd;
43+
case 0xe8: return 0xe8;
44+
case 0xe7: return 0xe8;
45+
case 0xe6: return 0xeb;
46+
case 0xc6: return 0xe9;
47+
case 0xd1: return 0xea;
48+
}
49+
return code;
50+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
int func_ov005_02059464(int code) {
2+
switch (code) {
3+
case 0xc0: return 0xc0;
4+
case 0xc1: return 0xc0;
5+
case 0xc7: return 0xc1;
6+
case 0xc8: return 0xc1;
7+
case 0xd3: return 0xc2;
8+
case 0xd2: return 0xc2;
9+
case 0xdc: return 0xc3;
10+
case 0xc2: return 0xe4;
11+
case 0xc3: return 0xe4;
12+
case 0xc9: return 0xe5;
13+
case 0xca: return 0xe5;
14+
case 0xd4: return 0xe6;
15+
case 0xd5: return 0xe6;
16+
case 0xdd: return 0xe7;
17+
case 0xcd: return 0xcd;
18+
case 0xce: return 0xcd;
19+
case 0xd9: return 0xce;
20+
case 0xd8: return 0xce;
21+
case 0xcf: return 0xdf;
22+
case 0xd0: return 0xdf;
23+
case 0xdb: return 0xe0;
24+
case 0xda: return 0xe0;
25+
case 0xc4: return 0xc6;
26+
case 0xc5: return 0xc6;
27+
case 0xcb: return 0xd7;
28+
case 0xcc: return 0xd7;
29+
case 0xd7: return 0xd8;
30+
case 0xd6: return 0xd8;
31+
case 0xe0: return 0xc6;
32+
case 0xe1: return 0xc6;
33+
case 0xea: return 0xc7;
34+
case 0xe9: return 0xc7;
35+
case 0xde: return 0xc4;
36+
case 0xdf: return 0xc4;
37+
case 0xe5: return 0xda;
38+
case 0xe4: return 0xda;
39+
case 0xe2: return 0xca;
40+
case 0xe3: return 0xca;
41+
case 0xec: return 0xcb;
42+
case 0xeb: return 0xcb;
43+
case 0xe8: return 0xe8;
44+
case 0xe7: return 0xe8;
45+
case 0xe6: return 0xeb;
46+
case 0xc6: return 0xe9;
47+
case 0xd1: return 0xea;
48+
}
49+
return code;
50+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
int func_ov005_02059690(int code) {
2+
switch (code) {
3+
case 0xc0: return 0xcc;
4+
case 0xc1: return 0xcc;
5+
case 0xc7: return 0xcd;
6+
case 0xc8: return 0xcd;
7+
case 0xd3: return 0xce;
8+
case 0xd2: return 0xce;
9+
case 0xdc: return 0xcf;
10+
case 0xc2: return 0xe4;
11+
case 0xc3: return 0xe4;
12+
case 0xc9: return 0xe5;
13+
case 0xca: return 0xe5;
14+
case 0xd4: return 0xe6;
15+
case 0xd5: return 0xe6;
16+
case 0xdd: return 0xe7;
17+
case 0xcd: return 0xd7;
18+
case 0xce: return 0xd7;
19+
case 0xd9: return 0xd8;
20+
case 0xd8: return 0xd8;
21+
case 0xcf: return 0xdf;
22+
case 0xd0: return 0xdf;
23+
case 0xdb: return 0xe0;
24+
case 0xda: return 0xe0;
25+
case 0xc4: return 0xc0;
26+
case 0xc5: return 0xc0;
27+
case 0xcb: return 0xc1;
28+
case 0xcc: return 0xc1;
29+
case 0xd7: return 0xc2;
30+
case 0xd6: return 0xc2;
31+
case 0xe0: return 0xc4;
32+
case 0xe1: return 0xc4;
33+
case 0xea: return 0xc5;
34+
case 0xe9: return 0xc5;
35+
case 0xde: return 0xd4;
36+
case 0xdf: return 0xd4;
37+
case 0xe5: return 0xdc;
38+
case 0xe4: return 0xdc;
39+
case 0xe2: return 0xca;
40+
case 0xe3: return 0xca;
41+
case 0xec: return 0xcb;
42+
case 0xeb: return 0xcb;
43+
case 0xe8: return 0xe8;
44+
case 0xe7: return 0xe8;
45+
case 0xe6: return 0xeb;
46+
case 0xc6: return 0xe9;
47+
case 0xd1: return 0xea;
48+
}
49+
return code;
50+
}

0 commit comments

Comments
 (0)