Commit Graph

8 Commits

Author SHA1 Message Date
oSumAtrIX
bbb2c547aa feat: Add findParentMethod utility method (#4)
* feat: Add `findParentMethod` utitly method

* refactor: add `resolveMethod` to `MethodResolver`

added some assertions and some tests

Co-authored-by: Lucaskyy <contact@sculas.xyz>
2022-06-05 08:02:42 +02:00
Lucaskyy
5f12bab5df fix: current must be calculated after increment 2022-03-20 16:57:33 +01:00
oSumAtrIX
5d146c362f Improve example test testPatcher and increase caching speed 2022-03-20 03:06:23 +01:00
Lucaskyy
f45dd511f3 Cleanup 2022-03-19 22:53:30 +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
6bd4d80c47 Cache classes with their path & add ScanData for PatchData 2022-03-19 21:30:13 +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