add fast tekker patch

This commit is contained in:
Martin Michelsen
2025-10-28 22:24:59 -07:00
parent 83260d5037
commit 31b49a71fb
6 changed files with 176 additions and 2 deletions
+62
View File
@@ -554,6 +554,68 @@ Heaven Punisher's special always works
3OE2 => 0412AD84 38800001
3OP0 => 0412AF5C 38800001
Fast tekker (skips wind-up jingle)
1OJ1 => 8C15B0CA mov r1, 1
8C15B0E6 nop
1OJ2 => 8C162302 mov r1, 1
8C16231E nop
1OJ3 => 8C175E66 mov r1, 1
8C175E82 nop
1OJ4 => 8C1780AE mov r1, 1
8C1780CA nop
1OJF => 8C17600E mov r1, 1
8C17602A nop
1OEF => 8C17863E mov r1, 1
8C17865A nop
1OPF => 8C1783FA mov r1, 1
8C178416 nop
2OJ5 => 8C19BD4A mov r1, 1
8C19BD66 nop
2OJF => 8C19ADB6 mov r1, 1
8C19ADD2 nop
2OEF => 8C19BD4A mov r1, 1
8C19BD66 nop
2OPF => 8C19B7E2 mov r1, 1
8C19B7FE nop
2OJW => 005B14A3 mov dword [ebx + 0x150], 1
005B14BF jmp +0x0D
2OJZ => 005B0193 mov dword [ebx + 0x150], 1
005B01AF jmp +0x0D
3OJT => 0426FAE8 38000001
0426FB10 60000000
3OJ2 => 0421F8CC 38000001
0421F8F4 60000000
3OJ3 => 04220250 38000001
04220278 60000000
3OJ4 => 04221154 38000001
0422117C 60000000
3OJ5 => 04220EF0 38000001
04220F18 60000000
3OE0 => 04220170 38000001
04220198 60000000
3OE1 => 04220170 38000001
04220198 60000000
3OE2 => 04221224 38000001
0422124C 60000000
3OP0 => 04220ABC 38000001
04220AE4 60000000
4OED => 0023EF3C mov dword [ebp + 0x14C], 1
0023EF57 jmp +0x0A
4OEU => 0023F0BC mov dword [ebp + 0x14C], 1
0023F0D7 jmp +0x0A
4OJB => 0023EC5C mov dword [ebp + 0x14C], 1
0023EC77 jmp +0x0A
4OJD => 0023EEAC mov dword [ebp + 0x14C], 1
0023EEC7 jmp +0x0A
4OJU => 0023F21C mov dword [ebp + 0x14C], 1
0023F237 jmp +0x0A
4OPD => 0023EF5C mov dword [ebp + 0x14C], 1
0023EF77 jmp +0x0A
4OPU => 0023F14C mov dword [ebp + 0x14C], 1
0023F167 jmp +0x0A
59NL => 006DA113 mov dword [edi + 0x14C], 1
006DA130 jmp +0x0B
Allow loading corrupted save files
3OJ2 => 041FC784 38600007
041FC788 4E800020
+2 -2
View File
@@ -2178,9 +2178,9 @@ static const vector<DATEntityDefinition> dat_object_definitions({
{0x020F, F_V3_V4, 0x0000400C3F800000, "TOTrapChainSawDamage"},
// Laser detector trap. Params:
// param3 = model number (<= for small laser, > 0 for large laser)
// param3 = model number (<= 0 for small laser, > 0 for large laser)
// param4 = switch flag number (enables this flag when triggered)
// param5-6: same as 0x020F (TOTrapChainSawDamage)
// param5-6 = same as 0x020F (TOTrapChainSawDamage)
{0x0210, F_V3_V4, 0x0000400C3F800000, "TOTrapChainSawKey"},
// TODO: Describe this object. It's a subclass of TODragonfly and has the
@@ -0,0 +1,24 @@
.meta name="Fast tekker"
.meta description="Skips wind-up sound\nat tekker window"
.versions 1OJ1 1OJ2 1OJ3 1OJ4 1OJF 1OEF 1OPF 2OJ5 2OJF 2OEF 2OPF
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksDC
.align 4
.data <VERS 0x8C15B0CA 0x8C162302 0x8C175E66 0x8C1780AE 0x8C17600E 0x8C17863E 0x8C1783FA 0x8C19BD4A 0x8C19ADB6 0x8C19BD4A 0x8C19B7E2>
.data 0x00000002
mov r1, 1
.align 4
.data <VERS 0x8C15B0E6 0x8C16231E 0x8C175E82 0x8C1780CA 0x8C17602A 0x8C17865A 0x8C178416 0x8C19BD66 0x8C19ADD2 0x8C19BD66 0x8C19B7FE>
.data 0x00000002
nop
.align 4
.data 0x00000000
.data 0x00000000
@@ -0,0 +1,21 @@
.meta name="Fast tekker"
.meta description="Skips wind-up sound\nat tekker window"
.versions 3OJT 3OJ2 3OJ3 3OJ4 3OJ5 3OE0 3OE1 3OE2 3OP0
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksGC
.data <VERS 0x8026FAE8 0x8021F8CC 0x80220250 0x80221154 0x80220EF0 0x80220170 0x80220170 0x80221224 0x80220ABC>
.data 4
li r0, 1
.data <VERS 0x8026FB10 0x8021F8F4 0x80220278 0x8022117C 0x80220F18 0x80220198 0x80220198 0x8022124C 0x80220AE4>
.data 4
nop
.data 0x00000000
.data 0x00000000
@@ -0,0 +1,34 @@
.meta name="Fast tekker"
.meta description="Skips wind-up sound\nat tekker window"
.versions 4OJB 4OJD 4OJU 4OED 4OEU 4OPD 4OPU
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksXB
.data <VERS 0x0023EC5C 0x0023EEAC 0x0023F21C 0x0023EF3C 0x0023F0BC 0x0023EF5C 0x0023F14C>
.deltaof patch1_start, patch1_end
patch1_start:
mov dword [ebp + 0x14C], 1
patch1_end:
.data <VERS 0x0023EC77 0x0023EEC7 0x0023F237 0x0023EF57 0x0023F0D7 0x0023EF77 0x0023F167>
.deltaof patch2_start, patch2_end
patch2_start:
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
patch2_end:
.data 0x00000000
.data 0x00000000
@@ -0,0 +1,33 @@
.meta name="Fast tekker"
.meta description="Skips wind-up sound\nat tekker window"
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksBB
.data 0x006DA113
.deltaof patch1_start, patch1_end
patch1_start:
mov dword [edi + 0x14C], 1
patch1_end:
.data 0x006DA130
.deltaof patch2_start, patch2_end
patch2_start:
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
patch2_end:
.data 0x00000000
.data 0x00000000