Files
jak-project/test/decompiler/reference/jak2/engine/util/capture-h_REF.gc
T
Hat Kid fc43870d85 decompiler: obj -> this, set-time! and time-elapsed? macros (#3026)
This renames the method object in `defmethod`s to `this` and adds
detection for the `set-time!` and `time-elapsed?` macros.

Definitely my biggest PR yet...
2023-09-26 15:17:00 +01:00

100 lines
3.3 KiB
Common Lisp
Vendored
Generated

;;-*-Lisp-*-
(in-package goal)
;; this file is debug only
(declare-file (debug))
;; definition of type gs-store-image-packet
(deftype gs-store-image-packet (structure)
((vifcode vif-tag 4 :offset-assert 0)
(giftag gif-tag :offset-assert 16)
(bitbltbuf gs-bitbltbuf :offset-assert 32)
(bitbltbuf-addr gs-reg64 :offset-assert 40)
(trxpos gs-trxpos :offset-assert 48)
(trxpos-addr gs-reg64 :offset-assert 56)
(trxreg gs-trxreg :offset-assert 64)
(trxreg-addr gs-reg64 :offset-assert 72)
(finish int64 :offset-assert 80)
(finish-addr gs-reg64 :offset-assert 88)
(trxdir gs-trxdir :offset-assert 96)
(trxdir-addr gs-reg64 :offset-assert 104)
)
:method-count-assert 9
:size-assert #x70
:flag-assert #x900000070
)
;; definition for method 3 of type gs-store-image-packet
;; INFO: Used lq/sq
(defmethod inspect gs-store-image-packet ((this gs-store-image-packet))
(when (not this)
(set! this this)
(goto cfg-4)
)
(format #t "[~8x] ~A~%" this 'gs-store-image-packet)
(format #t "~1Tvifcode[4] @ #x~X~%" (-> this vifcode))
(format #t "~1Tgiftag: ~D~%" (-> this giftag))
(format #t "~1Tbitbltbuf: ~D~%" (-> this bitbltbuf))
(format #t "~1Tbitbltbuf-addr: ~D~%" (-> this bitbltbuf-addr))
(format #t "~1Ttrxpos: ~D~%" (-> this trxpos))
(format #t "~1Ttrxpos-addr: ~D~%" (-> this trxpos-addr))
(format #t "~1Ttrxreg: ~D~%" (-> this trxreg))
(format #t "~1Ttrxreg-addr: ~D~%" (-> this trxreg-addr))
(format #t "~1Tfinish: ~D~%" (-> this finish))
(format #t "~1Tfinish-addr: ~D~%" (-> this finish-addr))
(format #t "~1Ttrxdir: ~D~%" (-> this trxdir))
(format #t "~1Ttrxdir-addr: ~D~%" (-> this trxdir-addr))
(label cfg-4)
this
)
;; definition of type screen-shot-work
(deftype screen-shot-work (structure)
((count int16 :offset-assert 0)
(size int16 :offset-assert 2)
(name string :offset-assert 4)
(highres-enable symbol :offset-assert 8)
(hud-enable symbol :offset-assert 12)
)
:method-count-assert 9
:size-assert #x10
:flag-assert #x900000010
)
;; definition for method 3 of type screen-shot-work
(defmethod inspect screen-shot-work ((this screen-shot-work))
(when (not this)
(set! this this)
(goto cfg-4)
)
(format #t "[~8x] ~A~%" this 'screen-shot-work)
(format #t "~1Tcount: ~D~%" (-> this count))
(format #t "~1Tsize: ~D~%" (-> this size))
(format #t "~1Tname: ~A~%" (-> this name))
(format #t "~1Thighres-enable: ~A~%" (-> this highres-enable))
(format #t "~1Thud-enable: ~A~%" (-> this hud-enable))
(label cfg-4)
this
)
;; definition for symbol *screen-shot-work*, type screen-shot-work
(define *screen-shot-work* (new 'global 'screen-shot-work))
;; failed to figure out what this is:
(set! (-> *screen-shot-work* count) -1)
;; failed to figure out what this is:
(set! (-> *screen-shot-work* size) -1)
;; failed to figure out what this is:
(set! (-> *screen-shot-work* highres-enable) #f)
;; failed to figure out what this is:
(set! (-> *screen-shot-work* hud-enable) #f)
;; definition for symbol *image-name*, type string
(define *image-name* (new 'global 'string 32 (the-as string #f)))
;; failed to figure out what this is:
0