[decomp] jak2: debug, debug-sphere (#1846)

I wasn't able to 100% complete `debug` due to a bunch of level boundary
debug stuff I couldn't figure out. But, I added a ref test and
documented/copied over everything else into goal_src.

Most of the functions that existed in Jak 1 are identical, others got an
extra param or 2 and some now make copies of arguments instead of
modifying them. There's a bunch of new functions, including all of the
debug functions that used to be in `level-boundary` are now in `debug`.
At the very end of `debug` there's also some weird asm functions
checking for some EE memory controller bug (not sure what's up with
that)?
This commit is contained in:
Ethan Lafrenais
2022-09-07 18:14:34 -04:00
committed by GitHub
parent 44d59e6b33
commit 22982d2750
20 changed files with 4702 additions and 106 deletions
+3 -4
View File
@@ -11,13 +11,12 @@
(define-extern transform-float-point (function vector vector4w vector4w))
(define-extern add-debug-line (function symbol bucket-id vector vector rgba symbol rgba symbol))
;; NOTE - for sparticle-launcher
(define-extern add-debug-sphere (function symbol bucket-id vector float rgba symbol))
(define-extern add-debug-sphere (function symbol bucket-id vector meters rgba symbol))
(define-extern add-debug-line2d (function symbol bucket-id vector vector vector symbol))
(define-extern add-debug-sphere (function symbol bucket-id vector float rgba symbol))
(define-extern add-debug-text-3d (function symbol bucket-id string vector font-color vector2h symbol))
(define-extern add-debug-text-sphere (function symbol bucket-id vector float string rgba symbol))
(define-extern add-debug-text-sphere (function symbol bucket-id vector meters string rgba symbol))
;; DECOMP BEGINS
@@ -77,4 +76,4 @@
(define *color-dark-yellow* (new 'static 'rgba :r #x80 :g #x80 :a #x80))
(define *color-orange* (new 'static 'rgba :r #xff :g #x80 :a #x80))
(define-extern add-debug-matrix (function symbol bucket-id matrix float matrix))
(define-extern add-debug-matrix (function symbol bucket-id matrix meters matrix))