mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 14:54:53 -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:
+3
-13
@@ -12,21 +12,11 @@
|
||||
(-> this src-proc)
|
||||
(or process (-> this dst-proc))
|
||||
)
|
||||
(let* ((process-source (handle->process (-> this src-proc)))
|
||||
(process-focus (if (type? process-source process-focusable)
|
||||
(the-as process-focusable process-source)
|
||||
)
|
||||
)
|
||||
)
|
||||
(let ((process-focus (as-type (handle->process (-> this src-proc)) process-focusable)))
|
||||
(when process-focus
|
||||
(when (not process)
|
||||
(let ((process-dest (handle->process (-> this dst-proc))))
|
||||
(set! process (if (type? process-dest process-focusable)
|
||||
(the-as process-focusable process-dest)
|
||||
)
|
||||
)
|
||||
(if (not process)
|
||||
(set! process (as-type (handle->process (-> this dst-proc)) process-focusable))
|
||||
)
|
||||
)
|
||||
(when process
|
||||
(let ((start-pos (new 'stack-no-clear 'vector)))
|
||||
(set! (-> start-pos quad) (-> (get-trans process-focus 3) quad))
|
||||
|
||||
Reference in New Issue
Block a user