mirror of
https://github.com/open-goal/jak-project
synced 2026-06-22 09:05:44 -04:00
0ce5835818
Updates the decompiler for the new format and there's new macros. This new format should be easier to read/parse. Also rewrote `sp-init-fields!` (both jak 1 and 2) from assembly to GOAL. Hopefully I did not miss any regressions in Jak 1/2 while updating the files, it's a lot.
28 lines
833 B
Common Lisp
Vendored
Generated
28 lines
833 B
Common Lisp
Vendored
Generated
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; definition of type decomp-work
|
|
(deftype decomp-work (structure)
|
|
((buffer0 uint8 2048 :offset-assert 0)
|
|
(buffer1 uint8 2048 :offset-assert 2048)
|
|
(indices uint16 2048 :offset-assert 4096)
|
|
(temp-indices uint16 2048 :offset-assert 8192)
|
|
)
|
|
:method-count-assert 9
|
|
:size-assert #x3000
|
|
:flag-assert #x900003000
|
|
)
|
|
|
|
;; definition for method 3 of type decomp-work
|
|
(defmethod inspect decomp-work ((obj decomp-work))
|
|
(format #t "[~8x] ~A~%" obj 'decomp-work)
|
|
(format #t "~Tbuffer0[2048] @ #x~X~%" (-> obj buffer0))
|
|
(format #t "~Tbuffer1[2048] @ #x~X~%" (-> obj buffer1))
|
|
(format #t "~Tindices[2048] @ #x~X~%" (-> obj indices))
|
|
(format #t "~Ttemp-indices[2048] @ #x~X~%" (-> obj temp-indices))
|
|
obj
|
|
)
|
|
|
|
;; failed to figure out what this is:
|
|
0
|