jak-project/goalc/compiler/compilation
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
..
Asm.cpp [jak2] GOAL side texture animation stuff (#2766) 2023-06-24 10:11:47 -04:00
Atoms.cpp [decompiler] Handle find-parent-method (#3018) 2023-09-30 11:06:09 -04:00
Block.cpp [goalc] Address-to-line (#783) 2021-08-26 20:33:00 -04:00
CompilerControl.cpp i18n: subtitle code cleanup and update new subtitle JSON files to be compatible with Crowdin (#2802) 2023-07-09 02:53:39 +01:00
ConstantPropagation.cpp logs: replace every fmt::print with a lg call instead (#1368) 2022-10-01 11:58:36 -04:00
ControlFlow.cpp misc low hanging fruit fixes (#3034) 2023-09-27 00:59:07 +01:00
Debug.cpp dbgr: allow dumping the backtrace to a file (#2284) 2023-02-27 18:54:23 -05:00
Define.cpp [opengoal] make none a child of object (#3001) 2023-09-22 10:54:49 +01:00
Function.cpp [opengoal] make none a child of object (#3001) 2023-09-22 10:54:49 +01:00
Macro.cpp [compiler] fix compile_condition not attempting macro expansion (#3030) 2023-09-25 23:49:12 +01:00
Math.cpp less branches for division + fix divide by zeros (#2585) 2023-04-29 21:10:51 +01:00
State.cpp lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
Static.cpp [decomp] ctywide-obs (#2250) 2023-02-25 14:00:16 -05:00
Type.cpp [decompiler] Handle find-parent-method (#3018) 2023-09-30 11:06:09 -04:00