Files
jak-project/test/decompiler/reference/engine/game/effect-control-h_REF.gc
T
water111 a6d5c4eda3 [decompiler] clean up vector detection and add vector float product detection (#638)
* change

* recognize vector float product and update tests
2021-06-27 17:24:35 -04:00

84 lines
2.4 KiB
Common Lisp
Vendored

;;-*-Lisp-*-
(in-package goal)
;; definition of type effect-control
(deftype effect-control (basic)
((process process-drawable :offset-assert 4)
(flags uint32 :offset-assert 8)
(last-frame-group art-joint-anim :offset-assert 12)
(last-frame-num float :offset-assert 16)
(channel-offset int32 :offset-assert 20)
(res res-lump :offset-assert 24)
(name uint32 :offset-assert 28)
(param uint32 :offset-assert 32)
)
:method-count-assert 15
:size-assert #x24
:flag-assert #xf00000024
(:methods
(new (symbol type process-drawable) _type_ 0)
(dummy-9 () none 9)
(dummy-10 () none 10)
(dummy-11 () none 11)
(dummy-12 () none 12)
(set-channel-offset! (_type_ int) none 13)
(dummy-14 () none 14)
)
)
;; definition for method 3 of type effect-control
(defmethod inspect effect-control ((obj effect-control))
(format #t "[~8x] ~A~%" obj (-> obj type))
(format #t "~Tprocess: ~A~%" (-> obj process))
(format #t "~Tflags: #x~X~%" (-> obj flags))
(format #t "~Tlast-frame-group: ~A~%" (-> obj last-frame-group))
(format #t "~Tlast-frame-num: ~f~%" (-> obj last-frame-num))
(format #t "~Tchannel-offset: ~D~%" (-> obj channel-offset))
(format #t "~Tres: ~A~%" (-> obj res))
(format #t "~Tname: #x~X~%" (-> obj name))
(format #t "~Tparam: #x~X~%" (-> obj param))
obj
)
;; definition for method 0 of type effect-control
(defmethod
new
effect-control
((allocation symbol) (type-to-make type) (arg0 process-drawable))
(cond
(((method-of-type res-lump get-property-struct)
(-> arg0 draw jgeo extra)
'effect-name
'interp
-1000000000.0
#f
(the-as (pointer res-tag) #f)
*res-static-buf*
)
(let
((v0-1
(object-new allocation type-to-make (the-as int (-> type-to-make size)))
)
)
(set! (-> v0-1 process) arg0)
(set! (-> v0-1 last-frame-group) #f)
v0-1
)
)
(else
(the-as effect-control #f)
)
)
)
;; definition for method 13 of type effect-control
;; INFO: Return type mismatch int vs none.
(defmethod set-channel-offset! effect-control ((obj effect-control) (arg0 int))
(set! (-> obj channel-offset) arg0)
0
(none)
)
;; failed to figure out what this is:
0