mirror of
https://github.com/open-goal/jak-project
synced 2026-05-26 15:46:14 -04:00
2969833b2d
- `speech` - `ambient` - `water-h` - `vol-h` - `generic-obs` - `carry-h` - `pilot-h` - `board-h` - `gun-h` - `flut-h` - `indax-h` - `lightjak-h` - `darkjak-h` - `target-util` - `history` - `collide-reaction-target` - `logic-target` - `sidekick` - `projectile` - `voicebox` - `ragdoll-edit` - most of `ragdoll` (not added to gsrc yet) - `curves` - `find-nearest` - `lightjak-wings` - `target-handler` - `target-anim` - `target` - `target2` - `target-swim` - `target-lightjak` - `target-invisible` - `target-death` - `target-gun` - `gun-util` - `board-util` - `target-board` - `board-states` - `mech-h` - `vol` - `vent` - `viewer` - `gem-pool` - `collectables` - `crates` - `secrets-menu` Additionally: - Detection of non-virtual state inheritance - Added a config file that allows overriding the process stack size set by `stack-size-set!` calls - Fix for integer multiplication with `r0` - Fixed detection for the following macros: - `static-attack-info` - `defpart` and `defpartgroup` (probably still needs adjustments, uses Jak 2 implementation at the moment) - `sound-play` (Jak 3 seems to always call `sound-play-by-name` with a `sound-group` of 0, so the macro has been temporarily defaulted to use that) One somewhat significant change made here that should be noted is that the return type of `process::init-from-entity!` was changed to `object`. I've been thinking about this for a while, since it looks a bit nicer without the `(none)` at the end and I have recently encountered init methods that early return `0`.
92 lines
3.0 KiB
Common Lisp
92 lines
3.0 KiB
Common Lisp
;;-*-Lisp-*-
|
|
(in-package goal)
|
|
|
|
;; name: debug-h.gc
|
|
;; name in dgo: debug-h
|
|
;; dgos: GAME
|
|
|
|
(define-extern add-debug-line (function symbol bucket-id vector vector rgba symbol rgba symbol))
|
|
(define-extern add-debug-matrix (function symbol bucket-id matrix meters matrix))
|
|
(define-extern add-debug-sphere (function symbol bucket-id vector meters rgba symbol))
|
|
(define-extern add-debug-text-sphere (function symbol bucket-id vector meters string rgba symbol))
|
|
(define-extern add-debug-vector (function symbol bucket-id vector vector meters rgba symbol))
|
|
(define-extern add-debug-quaternion (function symbol bucket-id vector quaternion none))
|
|
(define-extern drawable-frag-count (function drawable int))
|
|
(define-extern drawable-tri-count (function drawable int))
|
|
(define-extern add-debug-x (function symbol bucket-id vector rgba symbol))
|
|
(define-extern add-debug-text-3d (function symbol bucket-id string vector font-color vector2h symbol))
|
|
|
|
;; DECOMP BEGINS
|
|
|
|
(deftype pos-history (structure)
|
|
((points (inline-array vector))
|
|
(num-points int32)
|
|
(h-first int32)
|
|
(h-last int32)
|
|
)
|
|
)
|
|
|
|
|
|
(deftype debug-vertex (structure)
|
|
((trans vector4w :inline)
|
|
(normal vector3h :inline)
|
|
(st vector2h :inline)
|
|
(color uint32)
|
|
)
|
|
)
|
|
|
|
|
|
(deftype debug-vertex-stats (basic)
|
|
((length int32)
|
|
(pos-count int32)
|
|
(vertex debug-vertex 600 :inline)
|
|
)
|
|
)
|
|
|
|
(define-extern *debug-vertex-stats* debug-vertex-stats)
|
|
(define-extern drawable-vertex-ratio (function drawable debug-vertex-stats int))
|
|
|
|
(define *color-black* (new 'static 'rgba :a #x80))
|
|
|
|
(define *color-white* (new 'static 'rgba :r #xff :g #xff :b #xff :a #x80))
|
|
|
|
(define *color-gray* (new 'static 'rgba :r #x80 :g #x80 :b #x80 :a #x80))
|
|
|
|
(define *color-red* (new 'static 'rgba :r #xff :a #x80))
|
|
|
|
(define *color-green* (new 'static 'rgba :g #xff :a #x80))
|
|
|
|
(define *color-blue* (new 'static 'rgba :b #xff :a #x80))
|
|
|
|
(define *color-cyan* (new 'static 'rgba :g #xff :b #xff :a #x80))
|
|
|
|
(define *color-magenta* (new 'static 'rgba :r #xff :b #xff :a #x80))
|
|
|
|
(define *color-yellow* (new 'static 'rgba :r #xff :g #xff :a #x80))
|
|
|
|
(define *color-light-red* (new 'static 'rgba :r #xff :g #x80 :b #x80 :a #x80))
|
|
|
|
(define *color-light-green* (new 'static 'rgba :r #x80 :g #xff :b #x80 :a #x80))
|
|
|
|
(define *color-light-blue* (new 'static 'rgba :r #x80 :g #x80 :b #xff :a #x80))
|
|
|
|
(define *color-light-cyan* (new 'static 'rgba :r #x80 :g #xff :b #xff :a #x80))
|
|
|
|
(define *color-light-magenta* (new 'static 'rgba :r #xff :g #x80 :b #xff :a #x80))
|
|
|
|
(define *color-light-yellow* (new 'static 'rgba :r #xff :g #xff :b #x80 :a #x80))
|
|
|
|
(define *color-dark-red* (new 'static 'rgba :r #x80 :a #x80))
|
|
|
|
(define *color-dark-green* (new 'static 'rgba :g #x80 :a #x80))
|
|
|
|
(define *color-dark-blue* (new 'static 'rgba :b #x80 :a #x80))
|
|
|
|
(define *color-dark-cyan* (new 'static 'rgba :g #x80 :b #x80 :a #x80))
|
|
|
|
(define *color-dark-magenta* (new 'static 'rgba :r #x80 :b #x80 :a #x80))
|
|
|
|
(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))
|