mirror of
https://github.com/open-goal/jak-project
synced 2026-08-01 08:27:22 -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:
+1
-6
@@ -773,12 +773,7 @@
|
||||
;; definition (debug) for function teleport-camera-by-name
|
||||
;; WARN: Return type mismatch object vs none.
|
||||
(defun-debug teleport-camera-by-name ((arg0 string))
|
||||
(let* ((gp-0 (entity-by-name arg0))
|
||||
(v1-0 (if (type? gp-0 entity-actor)
|
||||
gp-0
|
||||
)
|
||||
)
|
||||
)
|
||||
(let ((v1-0 (the-as entity (as-type (entity-by-name arg0) entity-actor))))
|
||||
(if (and v1-0 *camera*)
|
||||
(send-event *camera* 'teleport-to-vector-start-string (-> v1-0 trans))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user