jak-project/test/decompiler/reference/dgo-h_REF.gc

50 lines
1.3 KiB
Common Lisp
Raw Normal View History

2021-03-22 20:04:00 -04:00
;;-*-Lisp-*-
(in-package goal)
;; definition of type dgo-entry
(deftype dgo-entry (structure)
((offset uint32 :offset-assert 0)
(length uint32 :offset-assert 4)
)
:method-count-assert 9
:size-assert #x8
:flag-assert #x900000008
)
;; definition for method 3 of type dgo-entry
(defmethod inspect dgo-entry ((obj dgo-entry))
(format #t "[~8x] ~A~%" obj 'dgo-entry)
(format #t "~Toffset: ~D~%" (-> obj offset))
(format #t "~Tlength: ~D~%" (-> obj length))
obj
)
;; definition of type dgo-file
(deftype dgo-file (basic)
((num-go-files uint32 :offset-assert 4)
(total-length uint32 :offset-assert 8)
(rsvd uint32 :offset-assert 12)
(data uint8 :dynamic :offset-assert 16)
)
:method-count-assert 9
:size-assert #x10
:flag-assert #x900000010
)
;; definition for method 3 of type dgo-file
(defmethod inspect dgo-file ((obj dgo-file))
(format #t "[~8x] ~A~%" obj (-> obj type))
(format #t "~Tnum-go-files: ~D~%" (-> obj num-go-files))
(format #t "~Ttotal-length: ~D~%" (-> obj total-length))
(format #t "~Trsvd: ~D~%" (-> obj rsvd))
(format #t "~Tdata[0] @ #x~X~%" (-> obj data))
obj
)
;; failed to figure out what this is:
(let ((v0-2 0))
)
;; failed to figure out what this is:
(none)