mirror of
https://github.com/open-goal/jak-project
synced 2026-08-04 01:04:11 -04:00
af2836c452
* scripts: Automatically re-decompile if all-types is modified * decomp: `aligner-h` * remove inspect method
68 lines
1.8 KiB
Common Lisp
68 lines
1.8 KiB
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: aligner-h.gc
|
|
;; name in dgo: aligner-h
|
|
;; dgos: GAME, ENGINE
|
|
|
|
;; definition of type align-control
|
|
(deftype align-control (basic)
|
|
((flags uint32 :offset-assert 4)
|
|
(process basic :offset-assert 8)
|
|
(frame-group basic :offset-assert 12)
|
|
(frame-num float :offset-assert 16)
|
|
(matrix matrix 2 :inline :offset-assert 32)
|
|
(transform transform 2 :inline :offset-assert 160)
|
|
(delta transformq :inline :offset-assert 256)
|
|
(last-speed float :offset-assert 304)
|
|
(align transformq :inline :offset 160)
|
|
)
|
|
:method-count-assert 14
|
|
:size-assert #x134
|
|
:flag-assert #xe00000134
|
|
(:methods
|
|
(new (symbol type process) _type_ 0)
|
|
(dummy-9 () none 9)
|
|
(dummy-10 () none 10)
|
|
(dummy-11 () none 11)
|
|
(dummy-12 () none 12)
|
|
(dummy-13 () none 13)
|
|
)
|
|
)
|
|
|
|
;; definition for method 0 of type align-control
|
|
;; INFO: Return type mismatch object vs align-control.
|
|
(defmethod
|
|
new
|
|
align-control
|
|
((allocation symbol) (type-to-make type) (arg0 process))
|
|
(local-vars (pp process))
|
|
(let
|
|
((obj
|
|
(object-new allocation type-to-make (the-as int (-> type-to-make size)))
|
|
)
|
|
)
|
|
(if (zero? obj)
|
|
(return (begin
|
|
(let ((t9-1 (the-as (function object object) enter-state))
|
|
(a0-1 "memory")
|
|
)
|
|
(set!
|
|
(-> pp next-state)
|
|
(the-as state process-drawable-art-error)
|
|
)
|
|
(t9-1 a0-1)
|
|
)
|
|
(the-as align-control 0)
|
|
)
|
|
)
|
|
)
|
|
(set! (-> obj process) arg0)
|
|
(the-as align-control (the-as object obj))
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|