[decomp] better handling of animation code and art files (#1352)

* update refs

* [decompiler] read and process art groups

* finish decompiler art group selection & detect in `ja-group?`

* make art stuff work on offline tests!

* [decompiler] detect `ja-group!` (primitive)

* corrections.

* more

* use new feature on skel groups!

* find `loop!` as well

* fully fledged `ja` macro & decomp + `loop` detect

* fancy fixed point printing!

* update source

* `:num! max` (i knew i should've done this)

* Update jak1_ntsc_black_label.jsonc

* hi imports

* make compiling the game work

* fix `defskelgroup`

* clang

* update refs

* fix chan

* fix seek and finalboss

* fix tests

* delete unused function

* track let rewrite stats

* reorder `rewrite_let`

* Update .gitattributes

* fix bug with `:num! max`

* Update robotboss-part.gc

* Update goal-lib.gc

* document `ja`

* get rid of pc fixes thing

* use std::abs
This commit is contained in:
ManDude
2022-05-20 02:30:14 +01:00
committed by GitHub
parent 971a69e15c
commit 0212aa10c9
786 changed files with 21658 additions and 49501 deletions
+5 -8
View File
@@ -1013,14 +1013,11 @@
)
;; failed to figure out what this is:
(defskelgroup *fuelcell-naked-sg* fuelcell-naked
0
2
((1 (meters 999999)))
:bounds (static-spherem 0 1 0 1.6)
:longest-edge (meters 0)
:texture-level 2
)
(defskelgroup *fuelcell-naked-sg* fuelcell-naked fuelcell-naked-lod0-jg fuelcell-naked-idle-ja
((fuelcell-naked-lod0-mg (meters 999999)))
:bounds (static-spherem 0 1 0 1.6)
:texture-level 2
)
;; failed to figure out what this is:
(defpart 313
+4 -4
View File
@@ -284,7 +284,7 @@
:code
(behavior ()
(logior! (-> self mask) (process-mask sleep-code))
(while #t
(loop
(suspend)
)
(none)
@@ -362,7 +362,7 @@
)
:code
(behavior ()
(while #t
(loop
(if (not (paused?))
(seekl! (-> self offset) 0 (the int (* 15.0 (-> *display* time-adjust-ratio))))
)
@@ -426,7 +426,7 @@
(-> hud-arriving event)
:code
(behavior ((arg0 int))
(while #t
(loop
(if (not (paused?))
(seekl! (-> self offset) 128 (the int (* (the float arg0) (-> *display* time-adjust-ratio))))
)
@@ -512,7 +512,7 @@
(f24-0 (-> self root-override scale y))
(f22-0 (-> self root-override scale z))
)
(while #t
(loop
(let ((f0-7 (* f30-0 (-> *display* seconds-per-frame))))
(+! f26-0 f0-7)
(when (< 1.0 f26-0)
+5 -5
View File
@@ -1116,7 +1116,7 @@
)
:code
(behavior ()
(while #t
(loop
(when (hud-hidden?)
(dotimes (gp-0 (-> self nb-of-particles))
(if (= (-> self particles gp-0 part matrix) -1)
@@ -2122,7 +2122,7 @@
)
:code
(behavior ()
(while #t
(loop
(when (and (cpad-hold? 0 l1) (cpad-hold? 0 r1) *cheat-mode*)
(when (and (< (-> self task-index) (-> *level-task-data* (-> self display-level-index) nb-of-tasks))
(>= (-> self task-index) 0)
@@ -2452,7 +2452,7 @@
)
:code
(behavior ()
(while #t
(loop
(seekl! (-> self in-out-position) 0 (the int (* 170.0 (-> *display* time-adjust-ratio))))
(when (< (-> self in-out-position) 2867)
(seekl!
@@ -2490,7 +2490,7 @@
)
:code
(behavior ()
(while #t
(loop
(seekl!
(-> self transition-offset)
512
@@ -2523,7 +2523,7 @@
)
:code
(behavior ()
(while #t
(loop
(cond
((cpad-pressed? 0 left)
(if (> (-> self current-debug-string) 0)