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

[decompiler] as-type and font method support #3855

Merged
merged 7 commits into from
Feb 2, 2025
Merged

Conversation

water111
Copy link
Collaborator

@water111 water111 commented Feb 1, 2025

Add support for as-type macro, and detecting inline font methods. This works in all three games but I've only updated jak 3's goal_src for now. Eventually I will go back and work through the others, but I want to get more decompiler features in first.

image

"If this is the specified type, return this cast to that type. Otherwise, return #f."
(with-gensyms (obj)
`(the ,type (let ((,obj ,this))
(if (type? ,obj ,type)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jak 1 doesn't have type?, only type-type?.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops - I should have left this. The decompiler doens't recognize the jak 1 version yet.

@xTVaser
Copy link
Member

xTVaser commented Feb 1, 2025

Probably closes #1280

@water111 water111 merged commit 48cb9bb into master Feb 2, 2025
12 checks passed
@water111 water111 deleted the w/as-type-font-decomp branch February 2, 2025 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants