Files
jak-project/test/decompiler/reference/jak2/engine/ui/text-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

69 lines
1.9 KiB
Common Lisp
Vendored
Generated

;;-*-Lisp-*-
(in-package goal)
;; definition of type game-text
(deftype game-text (structure)
((id text-id :offset-assert 0)
(text string :offset-assert 4)
)
:pack-me
:method-count-assert 9
:size-assert #x8
:flag-assert #x900000008
)
;; definition for method 3 of type game-text
(defmethod inspect game-text ((this game-text))
(when (not this)
(set! this this)
(goto cfg-4)
)
(format #t "[~8x] ~A~%" this 'game-text)
(format #t "~1Tid: ~D~%" (-> this id))
(format #t "~1Ttext: ~A~%" (-> this text))
(label cfg-4)
this
)
;; definition of type game-text-info
(deftype game-text-info (basic)
((length int32 :offset-assert 4)
(language-id int32 :offset-assert 8)
(group-name string :offset-assert 12)
(data game-text :inline :dynamic :offset-assert 16)
)
:method-count-assert 10
:size-assert #x10
:flag-assert #xa00000010
(:methods
(lookup-text! (_type_ text-id symbol) string 9)
)
)
;; definition for method 3 of type game-text-info
(defmethod inspect game-text-info ((this game-text-info))
(when (not this)
(set! this this)
(goto cfg-4)
)
(format #t "[~8x] ~A~%" this (-> this type))
(format #t "~1Tlength: ~D~%" (-> this length))
(format #t "~1Tlanguage-id: ~D~%" (-> this language-id))
(format #t "~1Tgroup-name: ~A~%" (-> this group-name))
(format #t "~1Tdata[0] @ #x~X~%" (-> this data))
(label cfg-4)
this
)
;; definition for symbol *text-group-names*, type (array string)
(define *text-group-names* (new 'static 'boxed-array :type string "common"))
;; definition for symbol *common-text-heap*, type kheap
(define *common-text-heap* (new 'global 'kheap))
;; definition for symbol *common-text*, type game-text-info
(define *common-text* (the-as game-text-info #f))
;; failed to figure out what this is:
0