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

Improve sceSystemServiceReceiveEvent stub #992

Merged

Conversation

StevenMiller123
Copy link
Contributor

@StevenMiller123 StevenMiller123 commented Sep 20, 2024

I've added both an EventType enum, and what should be the proper event struct, both based primarily off fpPS4 implementations. In the one game I've seen calling this function, the game runs a while loop until ReceiveEvent returns something other than 0, causing an infinite loop with the current implementation.

This needs testing with other games that can call this function, as I would assume some games may regress from the error return. If any regressions are found, please provide a log.

Confirmed improvements:

  • Ghost of Tsushima
  • Stranger of Paradise Final Fantasy Origin
  • Hatsune Miku Project Diva X

Primarily based on fpPS4's stubbed implementation. Until the various GetEvent functions in libSceSystemService and libSceUserService are implemented, this is all this function needs.
@gandalfthewhite19890404

Sorry, Ghost of Tsushima uses this

@gandalfthewhite19890404

Now GoTs goes further
image

@StevenMiller123
Copy link
Contributor Author

@gandalfthewhite19890404 Could you provide a log? I've got the method set to log some extra details, so a log will tell me if there's anything the game is hardcoded to expect.

@gandalfthewhite19890404

@StevenMiller123
Copy link
Contributor Author

Thanks, looks like my stub is working as expected in Ghost of Tsushima.

@dbz400
Copy link
Contributor

dbz400 commented Sep 28, 2024

Stranger of Paradise: Final Fantasy Origin also uses it and it now goes in-game graphic

@polybiusproxy polybiusproxy merged commit 170db22 into shadps4-emu:main Oct 15, 2024
10 checks passed
@StevenMiller123 StevenMiller123 deleted the sceSystemServiceReceiveEvent branch October 16, 2024 00:21
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.

4 participants