Skip to content
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

Merged
merged 3 commits into from
Jul 10, 2021
Merged

decomp: finish path #685

merged 3 commits into from
Jul 10, 2021

Conversation

xTVaser
Copy link
Member

@xTVaser xTVaser commented Jul 10, 2021

No description provided.

(+!
f30-0
(vector-vector-distance
(the-as vector (&+ (-> obj curve cverts) (* s5-0 16)))
Copy link
Collaborator

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.

;; 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
Copy link
Collaborator

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.

(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)
Copy link
Collaborator

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.

@water111 water111 merged commit 0e4a9d2 into open-goal:master Jul 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants