-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
465 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
; AUTO_PREFIX: ExpHP.bullet-cap. | ||
|
||
%include "util.asm" | ||
%include "common.asm" | ||
|
||
; Address range spanned by .text | ||
address_range: ; HEADER: AUTO | ||
dd 0x401000 | ||
dd 0x497ad5 | ||
|
||
bullet_replacements: ; HEADER: AUTO | ||
istruc ListHeader | ||
at ListHeader.old_cap, dd 0x7d0 | ||
at ListHeader.elem_size, dd 0x9f8 | ||
iend | ||
dd 0x7d0 | ||
dd SCALE_1 | ||
dd BLACKLIST_BEGIN | ||
dd 0x41ec14 - 4 ; in Gui::on_tick | ||
dd 0x464867 - 4 ; weird, possibly unused function | ||
dd 0x478506 + 2 ; coincidental appearance in a jump | ||
dd BLACKLIST_END | ||
|
||
dd 0x7d1 | ||
dd SCALE_1 | ||
dd REPLACE_ALL | ||
|
||
dd 0x4de716 ; offset of dummy bullet state | ||
dd SCALE_SIZE | ||
dd REPLACE_ALL | ||
|
||
dd 0x4debdc ; offset of bullet.anm | ||
dd SCALE_SIZE | ||
dd REPLACE_ALL | ||
|
||
dd 0x4debe0 ; size of bullet manager | ||
dd SCALE_SIZE | ||
dd REPLACE_ALL | ||
|
||
dd 0x4deb78 ; size of bullet array | ||
dd SCALE_SIZE | ||
dd REPLACE_ALL | ||
|
||
dd LIST_END | ||
|
||
laser_replacements: ; HEADER: AUTO | ||
istruc ListHeader | ||
at ListHeader.old_cap, dd 0x100 | ||
at ListHeader.elem_size, dd 0 | ||
iend | ||
dd 0x100 | ||
dd SCALE_1 | ||
dd WHITELIST_BEGIN | ||
; This sucker got inlined but we can just look at the crossrefs of LaserLine::constructor. | ||
dd 0x428461 - 4 | ||
dd 0x41bc4c - 4 | ||
dd 0x42a164 - 4 | ||
dd 0x42a766 - 4 | ||
dd 0x42b6c6 - 4 | ||
dd 0x42bd07 - 4 | ||
dd WHITELIST_END | ||
dd LIST_END | ||
|
||
cancel_replacements: ; HEADER: AUTO | ||
istruc ListHeader | ||
at ListHeader.old_cap, dd 0x800 | ||
at ListHeader.elem_size, dd 0x9d8 | ||
iend | ||
dd 0xa68 ; array size (includes non-cancel items) | ||
dd SCALE_1 | ||
dd BLACKLIST_BEGIN | ||
dd 0x429b2a - 4 ; reading a field from a laser | ||
dd 0x435a04 - 4 ; Player::constructor | ||
dd BLACKLIST_END | ||
|
||
; offsets of fields after array | ||
dd 0x666fd4 ; num items alive | ||
dd SCALE_SIZE | ||
dd REPLACE_ALL | ||
dd 0x666fd8 ; next cancel item index | ||
dd SCALE_SIZE | ||
dd REPLACE_ALL | ||
dd 0x666fdc ; num cancel items spawned this frame | ||
dd SCALE_SIZE | ||
dd REPLACE_ALL | ||
dd 0x666fe0 ; num ufos spawned during this stage | ||
dd SCALE_SIZE | ||
dd REPLACE_ALL | ||
dd 0x666fe4 ; ItemManager size | ||
dd SCALE_SIZE | ||
dd REPLACE_ALL | ||
|
||
dd 0x666fc0 ; array size | ||
dd SCALE_SIZE | ||
dd REPLACE_ALL | ||
|
||
dd LIST_END | ||
|
||
iat_funcs: ; HEADER: ExpHP.bullet-cap.iat-funcs | ||
.GetLastError: dd 0x4980e4 | ||
.GetModuleHandleA: dd 0 | ||
.GetModuleHandleW: dd 0x498174 | ||
.GetProcAddress: dd 0x498170 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"COMMENT": "This file is autogenerated. Please do not edit it directly. See the convert-yaml.py script.", | ||
"codecaves": { | ||
"ExpHP.bullet-cap.address-range": "00104000 // D57A4900", | ||
"ExpHP.bullet-cap.bullet-replacements": "D0070000 // F8090000 // D0070000 // 00000000 // FFFFFFFF // 10EC4100 // 63484600 // 08854700 // 00000000 // D1070000 // 00000000 // FFFFFFFF00000000 // 16E74D00 // 01000000 // FFFFFFFF00000000 // DCEB4D00 // 01000000 // FFFFFFFF00000000 // E0EB4D00 // 01000000 // FFFFFFFF00000000 // 78EB4D00 // 01000000 // FFFFFFFF00000000 // 00000000", | ||
"ExpHP.bullet-cap.laser-replacements": "00010000 // 00000000 // 00010000 // 00000000 // 01000000 // 5D844200 // 48BC4100 // 60A14200 // 62A74200 // C2B64200 // 03BD4200 // 00000000 // 00000000", | ||
"ExpHP.bullet-cap.cancel-replacements": "00080000 // D8090000 // 680A0000 // 00000000 // FFFFFFFF // 269B4200 // 005A4300 // 00000000 // D46F6600 // 01000000 // FFFFFFFF00000000 // D86F6600 // 01000000 // FFFFFFFF00000000 // DC6F6600 // 01000000 // FFFFFFFF00000000 // E06F6600 // 01000000 // FFFFFFFF00000000 // E46F6600 // 01000000 // FFFFFFFF00000000 // C06F6600 // 01000000 // FFFFFFFF00000000 // 00000000", | ||
"ExpHP.bullet-cap.iat-funcs": "E4804900 // 00000000 // 74814900 // 70814900", | ||
"of(ExpHP.bullet-cap.install)": "E8[codecave:ExpHP.bullet-cap.initialize] // BED8F04C00 // E800000000 // C7042423054300 // C3", | ||
"of(ExpHP.bullet-cap.fix-next-cancel)": "52 // E8[codecave:ExpHP.bullet-cap.next-cancel-index] // 89C2 // E800000000 // C704246A784200 // C3" | ||
}, | ||
"binhacks": { | ||
"ExpHP.bullet-cap.install": { | ||
"addr": "0x43051e", | ||
"expected": "bed8f04c00", | ||
"code": "E9 [codecave:of(ExpHP.bullet-cap.install)]" | ||
}, | ||
"ExpHP.bullet-cap.fix-next-cancel": { | ||
"addr": "0x427859", | ||
"expected": "4281e2ff070080", | ||
"code": "E9 [codecave:of(ExpHP.bullet-cap.fix-next-cancel)] // CCCC" | ||
}, | ||
"ExpHP.bullet-cap.fix-ufo-item-bugs": { | ||
"addr": [ | ||
"0x427243", | ||
"0x427b5d" | ||
], | ||
"expected": "580a0000", | ||
"code": "680a0000" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
global.yaml | ||
th*.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.