jak-project/decompiler/util
water111 0e31a9c407
[decompiler] Handle find-parent-method (#3018)
This change adds a few new features:
- Decompiler automatically knows the type of `find-parent-method` use in
jak 1 and jak2 when used in a method or virtual state handler.
- Decompiler inserts a call to `call-parent-method` or
`find-parent-state`
- Removed most casts related to these functions

There are still a few minor issues around this:
- There are still some casts needed when using `post` methods, as `post`
is just a `function`, and needs a cast to `(function none)` or similar.
It didn't seem easy to change the type of `post`, so I'm not going to
worry about it for this PR. It only shows up in like 3 places in jak 2.
(and 0 in jak 1)
- If "call the handler if it's not #f" logic should probably be another
macro.

Fixes #805
2023-09-30 11:06:09 -04:00
..
config_parsers.cpp lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
config_parsers.h lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
data_decompile.cpp [decompiler] new features + fixes, + other jak2 fixes (#2796) 2023-07-04 17:23:24 -04:00
data_decompile.h [decompiler] new features + fixes, + other jak2 fixes (#2796) 2023-07-04 17:23:24 -04:00
DataParser.cpp offline-test: Partition by DGO and colorize/condense output (#2045) 2022-12-22 13:41:33 -05:00
DataParser.h lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
DecompilerTypeSystem.cpp docs: add support for :override-doc in method declarations as well as documenting state handlers (#2139) 2023-01-21 20:45:45 -05:00
DecompilerTypeSystem.h improve decomp of state handlers and art groups (#3014) 2023-09-23 09:53:50 -04:00
Error.h lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
goal_data_reader.cpp Save entities to JSON, and make custom level building a little faster (#2973) 2023-09-09 17:06:39 -04:00
goal_data_reader.h Save entities to JSON, and make custom level building a little faster (#2973) 2023-09-09 17:06:39 -04:00
MatchParam.h [Decompiler - New IR] Add AtomicOp (#181) 2021-01-06 20:04:15 -05:00
sparticle_decompile.cpp jak2: overlord rework (#2544) 2023-04-29 16:13:57 -04:00
sparticle_decompile.h Create a new format for particle definitions (defpart) (#2572) 2023-04-29 11:01:47 -04:00
StackSpillMap.h lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
TP_Type.cpp [decompiler] Handle find-parent-method (#3018) 2023-09-30 11:06:09 -04:00
TP_Type.h [decompiler] Handle find-parent-method (#3018) 2023-09-30 11:06:09 -04:00
type_utils.cpp d/jak2: get script decompiling, no ref tests yet (#1877) 2022-09-14 19:37:12 -04:00
type_utils.h game: Remove temporary CLI arg shim in gk (#2532) 2023-04-22 14:13:57 -04:00