mirror of
https://github.com/open-goal/jak-project
synced 2026-06-28 11:11:00 -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
-12
@@ -718,12 +718,7 @@
|
||||
;; definition for method 45 of type nav-mesh
|
||||
(defmethod link-to-other-mesh ((this nav-mesh) (arg0 nav-mesh-link))
|
||||
(when (not (-> arg0 dest-mesh))
|
||||
(let* ((s4-0 (entity-nav-mesh-by-aid (the-as actor-id (-> arg0 dest-mesh-id))))
|
||||
(v1-1 (if (type? s4-0 entity-nav-mesh)
|
||||
s4-0
|
||||
)
|
||||
)
|
||||
)
|
||||
(let ((v1-1 (as-type (entity-nav-mesh-by-aid (the-as actor-id (-> arg0 dest-mesh-id))) entity-nav-mesh)))
|
||||
(when v1-1
|
||||
(let ((a0-3 (-> v1-1 nav-mesh))
|
||||
(v1-2 (the-as nav-mesh-link #f))
|
||||
@@ -2600,12 +2595,7 @@
|
||||
;; definition for function get-nav-mesh
|
||||
(defun get-nav-mesh ((arg0 actor-id))
|
||||
(let ((gp-0 (the-as nav-mesh #f)))
|
||||
(let* ((s5-0 (entity-nav-mesh-by-aid arg0))
|
||||
(v1-0 (if (type? s5-0 entity-nav-mesh)
|
||||
s5-0
|
||||
)
|
||||
)
|
||||
)
|
||||
(let ((v1-0 (as-type (entity-nav-mesh-by-aid arg0) entity-nav-mesh)))
|
||||
(if v1-0
|
||||
(set! gp-0 (-> v1-0 nav-mesh))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user