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

Add missing definitions for adhoc matching headers #839

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

german77
Copy link
Contributor

No description provided.

SCE_NET_ADHOC_MATCHING_HANDLER_EVENT_BYE = 10,
SCE_NET_ADHOC_MATCHING_HANDLER_EVENT_DATA = 11,
SCE_NET_ADHOC_MATCHING_HANDLER_EVENT_DATA_ACK = 12,
SCE_NET_ADHOC_MATCHING_HANDLER_EVENT_DATA_TIMEOUT = 13
Copy link
Contributor

Choose a reason for hiding this comment

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

  • have you get these enums via reversing module by yourself?
  • doesn't referenced leaked/official sdk?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I reversed and re-implemented the full module in Vita3K/Vita3K#3470 although my work is a continuation of another WIP from another user that happens to have this exact enum already. The module behavior does seem to match with the enum names.

Since I can't confirm the source of this enum I can remove it as it's not essential for this header to work properly.

Copy link
Contributor

Choose a reason for hiding this comment

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

yep. please remove them and keep only your own reversing part. we cannot allow official sdk part. unknown source has same risk.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

Choose a reason for hiding this comment

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

@german77 sorry. something mores.

  1. are remain enums safe?
  2. please match code convention
    • use hardtab for indentation
    • if you doesn't have special reason, please use snake_case for structure field & function arguments (code coventions)
      • for example; optLen to be opt_len

@Princess-of-Sleeping can you support this review if I late :'(

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remaining enums are safe. I did the rest of this header by myself and I also have an usage example that I will upstream once this is merged. I will address the formatting issues in the following minutes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just as a side note the files in the same folder as this one don't match the convention.

@german77 german77 force-pushed the adhoc branch 2 times, most recently from 943fbc5 to c5a62e1 Compare January 6, 2025 16:38
@d3m3vilurr
Copy link
Contributor

ah you should define doc group in here

@d3m3vilurr d3m3vilurr merged commit 8c61c3a into vitasdk:master Jan 7, 2025
2 checks passed
@d3m3vilurr
Copy link
Contributor

ty for your contribution & patient :)

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