[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.


![image](https://github.com/user-attachments/assets/5c31bf85-97b4-437c-bc4b-dc054e60551e)

---------

Co-authored-by: water111 <awaterford1111445@gmail.com>
This commit is contained in:
water111
2025-02-01 21:23:11 -05:00
committed by GitHub
parent d5590ab638
commit 48cb9bb787
645 changed files with 5391 additions and 16694 deletions
File diff suppressed because it is too large Load Diff
+3 -9
View File
@@ -1517,17 +1517,11 @@
)
(dotimes (s5-1 (length gp-0))
(set! (-> self current-index) s5-1)
(let ((v1-43 sv-208))
(set! (-> v1-43 scale) 0.5)
)
(set-scale! sv-208 0.5)
(set! (-> sv-208 origin x) 70.0)
(set! (-> sv-208 origin y) (the float sv-212))
(let ((v1-48 sv-208))
(set! (-> v1-48 width) (the float 375))
)
(let ((v1-49 sv-208))
(set! (-> v1-49 height) (the float 30))
)
(set-width! sv-208 375)
(set-height! sv-208 30)
(set! (-> sv-208 flags) (font-flags kerning middle middle-vert large))
(let ((v1-51 sv-208))
(set! (-> v1-51 color) (if (and (= s5-1 (-> self option-index)) (= (-> self menu-transition) 0.0))