-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
decomp: finish path
#685
decomp: finish path
#685
Conversation
goal_src/engine/nav/path.gc
Outdated
(+! | ||
f30-0 | ||
(vector-vector-distance | ||
(the-as vector (&+ (-> obj curve cverts) (* s5-0 16))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you try changing cverts
to an (inline-array vector)
? I think this would clean up this stuff.
goal_src/engine/nav/path.gc
Outdated
;; definition for method 11 of type path-control | ||
;; Used lq/sq | ||
(defmethod get-random-point path-control ((obj path-control) (arg0 vector)) | ||
(with-pp (cond |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The formatting of this will probably change with the PR I merged a few minutes ago.
goal_src/engine/nav/path.gc
Outdated
(a2-2 (-> obj curve)) | ||
(a3-1 (new 'static 'rgba :r #xff :g #x80 :a #x80)) | ||
) | ||
(t9-4 a0-8 (the-as bucket-id a1-3) a2-2 a3-1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we have the type of add-debug-curve2
wrong. The asm for this is:
lw t9, add-debug-curve2(s7)
daddiu a0, s7, #t
addiu a1, r0, 68
daddiu a2, gp, 12
ld a3, L79(fp)
or t0, s7, r0
jalr ra, t9
sll v0, ra, 0
The or t0, s7, r0
is setting a 5th argument to #f
. I think if you add a symbol
argument to add-debug-curve2
, this will decompile correctly.
No description provided.