mirror of
https://github.com/open-goal/jak-project
synced 2026-05-26 15:46:14 -04:00
0cdeed9be7
* [pp2] put `define` dest on a single line * update source! * Update type_analysis.cpp * update old credits & racer code * change clang-cl args (REALLY force avx) * Update credits_REF.gc * comment small unused code * add timer to decompiler * fix unnecessary copy-constructors (no speed increase) * fixes * Update expression_build.cpp * wtf is this thing anyway * im bored. * clang * fix! * Revert "fix!" This reverts commit5b1ce6c718. * Revert "clang" This reverts commit5e67d9ccd1. * Revert "im bored." This reverts commit070e957ce8. * Revert "Update expression_build.cpp" This reverts commitb94d092fc5. * Revert "fixes" This reverts commitf3d871f60a. * Revert "fix unnecessary copy-constructors (no speed increase)" This reverts commit9100725802. * Keep the random inoffensive changes * Revert "Update type_analysis.cpp" This reverts commitd2456a5c75. * Update type_analysis.cpp
62 lines
1.9 KiB
Common Lisp
Vendored
Generated
62 lines
1.9 KiB
Common Lisp
Vendored
Generated
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; definition of type game-text
|
|
(deftype game-text (structure)
|
|
((id game-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 ((obj game-text))
|
|
(format #t "[~8x] ~A~%" obj 'game-text)
|
|
(format #t "~Tid: ~D~%" (-> obj id))
|
|
(format #t "~Ttext: ~A~%" (-> obj text))
|
|
obj
|
|
)
|
|
|
|
;; 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_ game-text-id symbol) string 9)
|
|
)
|
|
)
|
|
|
|
;; definition for method 3 of type game-text-info
|
|
;; INFO: this function exists in multiple non-identical object files
|
|
(defmethod inspect game-text-info ((obj game-text-info))
|
|
(format #t "[~8x] ~A~%" obj (-> obj type))
|
|
(format #t "~Tlength: ~D~%" (-> obj length))
|
|
(format #t "~Tlanguage-id: ~D~%" (-> obj language-id))
|
|
(format #t "~Tgroup-name: ~A~%" (-> obj group-name))
|
|
(format #t "~Tdata[0] @ #x~X~%" (-> obj data))
|
|
obj
|
|
)
|
|
|
|
;; definition for symbol *text-group-names*, type (array string)
|
|
(define *text-group-names*
|
|
(the-as (array string) (new 'static 'boxed-array :type string :length 1 :allocated-length 1 "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
|