always set vu function length to 0

This commit is contained in:
Hat Kid
2026-04-15 02:31:17 +02:00
parent c8653b2d51
commit 9f66a69859
5 changed files with 13 additions and 3 deletions
+2 -1
View File
@@ -161,7 +161,8 @@
but creates a reference to the existing VU function."
;; The first 4 bytes of a vu-function object's data are discarded because they aren't aligned.
(let ((func-ptr (the-as pointer (&-> vu-func data 4)))
(qlen (-> vu-func qlength)) ;; number of quadwords
;; og:preserve-this we rely on the vu functions being empty on pc
(qlen (#if PC_PORT 0 (-> vu-func qlength))) ;; number of quadwords
(origin (-> vu-func origin)) ;; destination address in VU instruction memory.
)
;; loop until whole program is transferred.
+2 -1
View File
@@ -233,7 +233,8 @@ note that the second vifcode can also hold other stuff depending on the mode.
;; The first 4 bytes of a vu-function object's data are discarded because they aren't aligned.
(let ((func-ptr (the-as pointer (&-> vu-func data 4)))
(qlen (-> vu-func qlength)) ;; number of quadwords
;; og:preserve-this we rely on the vu functions being empty on pc
(qlen (#if PC_PORT 0 (-> vu-func qlength))) ;; number of quadwords
(origin (-> vu-func origin)) ;; destination address in VU instruction memory.
)
;; loop until whole program is transferred.
+2 -1
View File
@@ -431,7 +431,8 @@
;; The first 4 bytes of a vu-function object's data are discarded because they aren't aligned.
(let ((func-ptr (the-as pointer (&-> vu-func data 4)))
(qlen (-> vu-func qlength)) ;; number of quadwords
;; og:preserve-this we rely on the vu functions being empty on pc
(qlen (#if PC_PORT 0 (-> vu-func qlength))) ;; number of quadwords
(origin (-> vu-func origin)) ;; destination address in VU instruction memory.
)
;; loop until whole program is transferred.
+3
View File
@@ -10,6 +10,9 @@
`(.lvf vf0 (new 'static 'vector :x 0.0 :y 0.0 :z 0.0 :w 1.0))
)
(defmacro square (x)
`(* ,x ,x))
;; DECOMP BEGINS
(defun truncate ((arg0 float))
+4
View File
@@ -1758,5 +1758,9 @@
)
)
(defmacro square (x)
`(* ,x ,x)
)
(import "goal_src/jak3/engine/data/tpages.gc")
(import "goal_src/jak3/engine/data/textures.gc")