mirror of
https://github.com/open-goal/jak-project
synced 2026-08-17 21:43:27 -04:00
[decompiler] as-type and font method support (#3855)
Add support for `as-type` macro, and detecting inline font methods. This works in all three games but I've only updated jak 3's goal_src for now. Eventually I will go back and work through the others, but I want to get more decompiler features in first.  --------- Co-authored-by: water111 <awaterford1111445@gmail.com>
This commit is contained in:
+2
-7
@@ -1361,13 +1361,8 @@
|
||||
(set! (-> s5-1 use-mouse-tumble-point) (-> s4-1 use-mouse-tumble-point))
|
||||
(set! (-> s5-1 mouse-tumble-point quad) (-> s4-1 mouse-tumble-point quad))
|
||||
(set! (-> s5-1 handle-of-interest) (-> s4-1 handle-of-interest))
|
||||
(let* ((s3-1 (handle->process (-> s5-1 handle-of-interest)))
|
||||
(a0-147 (the-as process-focusable (if (type? s3-1 process-focusable)
|
||||
(the-as process-focusable s3-1)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(let ((a0-147 (the-as process-focusable (as-type (handle->process (-> s5-1 handle-of-interest)) process-focusable)))
|
||||
)
|
||||
(when (the-as process a0-147)
|
||||
(set! (-> s5-1 use-point-of-interest) #t)
|
||||
(set! (-> s5-1 point-of-interest quad) (-> (get-trans a0-147 4) quad))
|
||||
|
||||
Reference in New Issue
Block a user