mirror of
https://github.com/open-goal/jak-project.git
synced 2024-11-30 09:51:02 +00:00
decomp: add default-menu
to ref tests, cleanup irrelevant gsrc forward decls (#941)
* decomp: add `default-menu` to ref tests, cleanup gsrc * re-disable function * decomp: add `drawable-group` to ref-tests
This commit is contained in:
parent
b24cc78cec
commit
236f298138
@ -1070,7 +1070,9 @@
|
||||
|
||||
"debug-menu-func-decode": [[[12, 14], "a0", "symbol"]],
|
||||
|
||||
"dm-cam-render-float": [[[71, 72], "v0", "float"]],
|
||||
"dm-cam-render-float": [
|
||||
[72, "v1", "float"]
|
||||
],
|
||||
|
||||
"can-hint-be-played?": [[[25, 28], "a0", "level-hint"]],
|
||||
"debug-menu-rebuild": [[[4, 13], "a0", "debug-menu-item"]],
|
||||
@ -2098,6 +2100,10 @@
|
||||
[118, "a0", "process-drawable"]
|
||||
],
|
||||
|
||||
"dm-task-get-money": [
|
||||
[32, "v1", "float"]
|
||||
],
|
||||
|
||||
"ground-tween-update": [
|
||||
[16, "f1", "float"],
|
||||
[20, "f2", "float"],
|
||||
@ -2113,7 +2119,10 @@
|
||||
[171, "v1", "float"]
|
||||
],
|
||||
|
||||
"all-texture-tweak-adjust": [[[35, 44], "s0", "adgif-shader"]],
|
||||
"all-texture-tweak-adjust": [
|
||||
[38, "s0", "adgif-shader"],
|
||||
[42, "s0", "adgif-shader"]
|
||||
],
|
||||
|
||||
"build-instance-list": [
|
||||
[30, "v1", "drawable-tree-instance-shrub"],
|
||||
|
File diff suppressed because it is too large
Load Diff
9015
test/decompiler/reference/engine/debug/default-menu_REF.gc
vendored
Normal file
9015
test/decompiler/reference/engine/debug/default-menu_REF.gc
vendored
Normal file
File diff suppressed because it is too large
Load Diff
147
test/decompiler/reference/engine/draw/drawable-group_REF.gc
vendored
Normal file
147
test/decompiler/reference/engine/draw/drawable-group_REF.gc
vendored
Normal file
@ -0,0 +1,147 @@
|
||||
;;-*-Lisp-*-
|
||||
(in-package goal)
|
||||
|
||||
;; definition for method 0 of type drawable-group
|
||||
(defmethod
|
||||
new
|
||||
drawable-group
|
||||
((allocation symbol) (type-to-make type) (arg0 int))
|
||||
(let
|
||||
((v0-0
|
||||
(object-new
|
||||
allocation
|
||||
type-to-make
|
||||
(the-as int (+ (-> type-to-make size) (* (+ arg0 -1) 4)))
|
||||
)
|
||||
)
|
||||
)
|
||||
(set! (-> v0-0 length) arg0)
|
||||
v0-0
|
||||
)
|
||||
)
|
||||
|
||||
;; definition for method 3 of type drawable-group
|
||||
(defmethod inspect drawable-group ((obj drawable-group))
|
||||
(format #t "[~8x] ~A~%" obj (-> obj type))
|
||||
(format #t "~Tid: ~D~%" (-> obj id))
|
||||
(format #t "~Tlength: ~D~%" (-> obj length))
|
||||
(format #t "~Tdata[~D]: @ #x~X~%" (-> obj length) (-> obj data))
|
||||
(dotimes (s5-0 (-> obj length))
|
||||
(format #t "~T [~D] ~A~%" s5-0 (-> obj data s5-0))
|
||||
)
|
||||
obj
|
||||
)
|
||||
|
||||
;; definition for method 2 of type drawable-group
|
||||
(defmethod print drawable-group ((obj drawable-group))
|
||||
(format #t "#<~A @ #x~X [~D]" (-> obj type) obj (-> obj length))
|
||||
(dotimes (s5-0 (-> obj length))
|
||||
(format #t " ~A" (-> obj data s5-0))
|
||||
)
|
||||
(format #t ">")
|
||||
obj
|
||||
)
|
||||
|
||||
;; definition for method 4 of type drawable-group
|
||||
(defmethod length drawable-group ((obj drawable-group))
|
||||
(-> obj length)
|
||||
)
|
||||
|
||||
;; definition for method 5 of type drawable-group
|
||||
;; INFO: Return type mismatch uint vs int.
|
||||
(defmethod asize-of drawable-group ((obj drawable-group))
|
||||
(the-as int (+ (-> drawable-group size) (* (+ (-> obj length) -1) 4)))
|
||||
)
|
||||
|
||||
;; definition for method 8 of type drawable-group
|
||||
(defmethod
|
||||
mem-usage
|
||||
drawable-group
|
||||
((obj drawable-group) (arg0 memory-usage-block) (arg1 int))
|
||||
(set! (-> arg0 length) (max 1 (-> arg0 length)))
|
||||
(set! (-> arg0 data 0 name) "drawable-group")
|
||||
(+! (-> arg0 data 0 count) 1)
|
||||
(let ((v1-6 (asize-of obj)))
|
||||
(+! (-> arg0 data 0 used) v1-6)
|
||||
(+! (-> arg0 data 0 total) (logand -16 (+ v1-6 15)))
|
||||
)
|
||||
(dotimes (s3-0 (-> obj length))
|
||||
(mem-usage (-> obj data s3-0) arg0 arg1)
|
||||
)
|
||||
obj
|
||||
)
|
||||
|
||||
;; definition for method 9 of type drawable-group
|
||||
(defmethod login drawable-group ((obj drawable-group))
|
||||
(dotimes (s5-0 (-> obj length))
|
||||
(login (-> obj data s5-0))
|
||||
)
|
||||
obj
|
||||
)
|
||||
|
||||
;; definition for method 10 of type drawable-group
|
||||
;; INFO: Return type mismatch int vs none.
|
||||
(defmethod
|
||||
draw
|
||||
drawable-group
|
||||
((obj drawable-group) (arg0 drawable) (arg1 display-frame))
|
||||
(when (vis-cull (-> obj id))
|
||||
(when (sphere-cull (-> obj bsphere))
|
||||
(dotimes (s3-0 (-> obj length))
|
||||
(draw (-> obj data s3-0) (-> (the-as drawable-group arg0) data s3-0) arg1)
|
||||
)
|
||||
)
|
||||
)
|
||||
0
|
||||
(none)
|
||||
)
|
||||
|
||||
;; definition for method 14 of type drawable-group
|
||||
;; INFO: Return type mismatch int vs none.
|
||||
(defmethod dummy-14 drawable-group ((obj drawable-group))
|
||||
(when (vis-cull (-> obj id))
|
||||
(when (sphere-cull (-> obj bsphere))
|
||||
(dotimes (s5-0 (-> obj length))
|
||||
(dummy-14 (-> obj data s5-0))
|
||||
)
|
||||
)
|
||||
)
|
||||
0
|
||||
(none)
|
||||
)
|
||||
|
||||
;; definition for method 15 of type drawable-group
|
||||
;; INFO: Return type mismatch int vs none.
|
||||
(defmethod
|
||||
debug-draw
|
||||
drawable-group
|
||||
((obj drawable-group) (arg0 drawable) (arg1 object))
|
||||
(when (vis-cull (-> obj id))
|
||||
(when (sphere-cull (-> obj bsphere))
|
||||
(dotimes (s3-0 (-> obj length))
|
||||
(debug-draw
|
||||
(-> obj data s3-0)
|
||||
(-> (the-as drawable-group arg0) data s3-0)
|
||||
arg1
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
0
|
||||
(none)
|
||||
)
|
||||
|
||||
;; definition for method 16 of type drawable-group
|
||||
(defmethod
|
||||
dummy-16
|
||||
drawable-group
|
||||
((obj drawable-group) (arg0 object) (arg1 object))
|
||||
(dotimes (s4-0 (-> obj length))
|
||||
(set! arg1 (dummy-16 (-> obj data s4-0) arg0 arg1))
|
||||
)
|
||||
arg1
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
@ -125,6 +125,10 @@
|
||||
// anim-tester
|
||||
"(method 3 anim-tester)",
|
||||
"anim-tester-save-object-seqs", // anim-tester -- new basic on the stack
|
||||
|
||||
// default-menu
|
||||
"all-texture-tweak-adjust", // dynamic-field access placeholder case TODO
|
||||
"debug-menu-make-instance-menu", // also disabled
|
||||
|
||||
// sage-finalboss
|
||||
"(method 7 sage-finalboss)" // inline-array stuff
|
||||
|
Loading…
Reference in New Issue
Block a user