Lucaskyy
ec8115f3ac
test: improve PatcherTest
2022-03-20 16:28:23 +01:00
Lucaskyy
0e72a6e85f
fix: remove broken code
...
accidentally committed TestUtil in previous commit, this allows it to compile again
2022-03-20 15:57:05 +01:00
Lucaskyy
d5a3c76389
fix: avoid ignoring test resources ( fixes #1 )
2022-03-20 15:54:41 +01:00
oSumAtrIX
5d146c362f
Improve example test testPatcher
and increase caching speed
2022-03-20 03:06:23 +01:00
Lucaskyy
29f1595183
WIP Saving
2022-03-19 23:58:37 +01:00
Lucaskyy
57d5751b2c
Add saveTo test
2022-03-19 23:33:17 +01:00
Lucaskyy
8c56d15823
Finish tests, add InsnList.setAt
, sr -> sd
...
Added some sweet explanation too.
2022-03-19 23:15:20 +01:00
Lucaskyy
61c0541ef5
Add information about test data in PatcherTest
2022-03-19 23:01:10 +01:00
Lucaskyy
fc64bbc32a
Minor things
2022-03-19 22:53:05 +01:00
Lucaskyy
e5f9a42ee6
Convert typed Object & Array types to Object types
...
Commit name is a bit superfluous, but it means that types such as "Ljava/lang/String;" get converted to "Ljava/lang/Object;". This is so we don't need to know the mappings, which are random in YT's code.
This is done in MethodResolver's "convertObject" and "convertObjects" for arrays.
Also changed ExtraTypes.ArrayAny to Object instead of String, that was a mistake. (which caused the test to pass at first)
2022-03-19 22:34:41 +01:00
Lucaskyy
f9327a2043
executePatches -> applyPatches, made logback a test dep
2022-03-19 21:58:31 +01:00
Lucaskyy
ae5007ebd1
Fix tests (stupid mistake) & add logging
2022-03-19 19:47:12 +01:00
Lucaskyy
a9e7f19d51
Refactor Patcher
2022-03-19 18:35:41 +01:00
oSumAtrIX
6666c7a4b7
Add: MethodResolver
, PatternScanner
, SignatureLoader
& Cache
2022-03-19 01:37:02 +01:00
Lucaskyy
7b40d53bd3
TIL CodeWithMe is ass!
2022-03-18 21:52:00 +01:00
Lucaskyy
675c409a59
Rework patcher
2022-03-18 20:46:24 +01:00