mirror of
https://github.com/open-goal/jak-project
synced 2026-05-30 00:47:20 -04:00
2a315419de
* tests: Move all files to new directories * scripts: Update decomp scripts * tests: Remove hard-coded list for offline tests * linting
48 lines
1.3 KiB
Common Lisp
48 lines
1.3 KiB
Common Lisp
;;-*-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))
|
|
)
|
|
|