Files
jak-project/test/decompiler/reference/jakx/engine/ui/text-h_REF.gc
T
Tyler Wilding 9c86c86c74 d/jx: More files (#4360)
Breaks the 300 file milestone, also includes the majority of mips2c
functions carried forward. Some functions need some fixes in the c++
code to mips2c properly, and a small handful of the mips2c functions
require manual patching -- all spots were marked with `TODO - fix` that
had to be commented out to get things compiling.
2026-09-04 09:27:06 -04:00

76 lines
1.9 KiB
Common Lisp
Vendored
Generated

;;-*-Lisp-*-
(in-package goal)
;; definition of type game-text
(deftype game-text (structure)
((id text-id)
(text string)
)
:pack-me
)
;; definition for method 3 of type game-text
(defmethod inspect ((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 "~1Tindex: ~D~%" (-> this text))
(label cfg-4)
this
)
;; definition of type game-text-info
(deftype game-text-info (basic)
((length int32)
(language-id int32)
(group-name string)
(dic-index uint32)
(dic-data uint32)
(text uint32)
(text-data uint32)
)
(:methods
(lookup-text! (_type_ text-id symbol) string)
(game-text-info-method-10 () none)
(game-text-info-method-11 () none)
(game-text-info-method-12 () none)
)
)
;; definition for method 3 of type game-text-info
(defmethod inspect ((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 "~1Tdic-index: #x~X~%" (-> this dic-index))
(format #t "~1Tdic-data: #x~X~%" (-> this dic-data))
(format #t "~1Ttext: #x~X~%" (-> this text))
(format #t "~1Ttext-data: #x~X~%" (-> this text-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