[jak2] fill in a lot of flags for decomp + mouse macros (#2927)

Also changed the default type of enums to `int64` (same as `int`).
This commit is contained in:
ManDude
2023-08-22 16:39:52 +01:00
committed by GitHub
parent 16af1837d1
commit 04269ffa86
104 changed files with 2472 additions and 1778 deletions
+5 -6
View File
@@ -1605,6 +1605,7 @@
)
;; definition for method 3 of type debug-vertex-stats
;; INFO: this function exists in multiple non-identical object files
(defmethod inspect debug-vertex-stats ((obj debug-vertex-stats))
(format #t "[~8x] ~A~%" obj (-> obj type))
(format #t "~Tlength: ~D~%" (-> obj length))
@@ -1726,8 +1727,7 @@
;; definition (debug) for function add-debug-cursor
;; INFO: Used lq/sq
;; WARN: Return type mismatch int vs none.
(defun-debug add-debug-cursor ((enable symbol) (bucket bucket-id) (x int) (y int) (arg4 int))
(defun-debug add-debug-cursor ((enable symbol) (bucket bucket-id) (x int) (y int) (arg4 mouse-buttons))
(when enable
(with-dma-buffer-add-bucket ((buf (-> *display* frames (-> *display* on-screen) global-buf))
bucket
@@ -1740,13 +1740,13 @@
(+ x -5)
(+ y -4)
(cond
((= v1-7 1)
((= v1-7 (mouse-buttons left))
(font-color red)
)
((= v1-7 2)
((= v1-7 (mouse-buttons right))
(font-color yellow)
)
((= v1-7 4)
((= v1-7 (mouse-buttons middle))
(font-color green)
)
(else
@@ -1759,7 +1759,6 @@
)
)
0
(none)
)
;; this part is debug only