mirror of
https://github.com/open-goal/jak-project
synced 2026-06-01 09:48:00 -04:00
f7bd0752f8
* wip * getting stuff set up so we can actually run test cases * better handle block entry stuff * types2 working on gstring * comments * math ref working * up to first stack stuff * stack fixes * bounding box * math stuff is working * float fixes * temp debug for (method 9 profile-array) * stupid stupid bug * debugging * everything is broken * some amount of type stuff works * bitfield * texture bitfields not working * temp * types * more stuff * type check * temp * float related fixes for light and res problems * revisit broken files, fix bugs * more types * vector debug * bug fixes for decompiler crashes in harder functions * update goal_src
72 lines
1.8 KiB
Common Lisp
Vendored
Generated
72 lines
1.8 KiB
Common Lisp
Vendored
Generated
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; definition of type draw-node
|
|
(deftype draw-node (drawable)
|
|
((child-count uint8 :offset 6)
|
|
(flags uint8 :offset 7)
|
|
(child drawable :offset 8)
|
|
(distance float :offset 12)
|
|
)
|
|
:method-count-assert 17
|
|
:size-assert #x20
|
|
:flag-assert #x1100000020
|
|
)
|
|
|
|
;; definition for method 3 of type draw-node
|
|
(defmethod inspect draw-node ((obj draw-node))
|
|
(when (not obj)
|
|
(set! obj obj)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" obj (-> obj type))
|
|
(format #t "~1Tid: ~D~%" (-> obj id))
|
|
(format #t "~1Tbsphere: ~`vector`P~%" (-> obj bsphere))
|
|
(format #t "~1Tchild-count: ~D~%" (-> obj child-count))
|
|
(format #t "~1Tflags: ~D~%" (-> obj flags))
|
|
(format #t "~1Tchild: #x~X~%" (-> obj child))
|
|
(format #t "~1Tdistance: #x~X~%" (-> obj distance))
|
|
(label cfg-4)
|
|
obj
|
|
)
|
|
|
|
;; definition of type drawable-inline-array-node
|
|
(deftype drawable-inline-array-node (drawable-inline-array)
|
|
((data draw-node 1 :inline :offset-assert 32)
|
|
(pad uint32 :offset-assert 64)
|
|
)
|
|
:method-count-assert 17
|
|
:size-assert #x44
|
|
:flag-assert #x1100000044
|
|
)
|
|
|
|
;; definition of type draw-node-dma
|
|
(deftype draw-node-dma (structure)
|
|
((banka draw-node 32 :inline :offset-assert 0)
|
|
(bankb draw-node 32 :inline :offset-assert 1024)
|
|
)
|
|
:method-count-assert 9
|
|
:size-assert #x800
|
|
:flag-assert #x900000800
|
|
)
|
|
|
|
;; definition for method 3 of type draw-node-dma
|
|
(defmethod inspect draw-node-dma ((obj draw-node-dma))
|
|
(when (not obj)
|
|
(set! obj obj)
|
|
(goto cfg-4)
|
|
)
|
|
(format #t "[~8x] ~A~%" obj 'draw-node-dma)
|
|
(format #t "~1Tbanka[32] @ #x~X~%" (-> obj banka))
|
|
(format #t "~1Tbankb[32] @ #x~X~%" (-> obj bankb))
|
|
(label cfg-4)
|
|
obj
|
|
)
|
|
|
|
;; failed to figure out what this is:
|
|
0
|
|
|
|
|
|
|
|
|