mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 15:56:00 +03:00
[PR #780] [CLOSED] [09/04/2024] Added Discord Presence Integration. #1767
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#1767
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/780
Author: @morkev
Created: 9/4/2024
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
0920b12[09/04/2024] Added Discord Presence Integration. Discord displays "In ShadPS4" along with elapsed time when a user is executing shadps4.exe in their computer.📊 Changes
3 files changed (+331 additions, -0 deletions)
View changed files
➕
presence/discord.cpp(+151 -0)➕
presence/discord.h(+64 -0)➕
presence/discord_rpc.h(+116 -0)📄 Description
Discord displays "In ShadPS4" along with elapsed time when a user is executing shadps4.exe in their computer.
The presence displays the current status of the emulator (e.g., whether shadps4.exe is running) and updates it in real-time within the Discord client. All necessary files have been moved to a presence directory to keep it organized.
Changes:
main.cppto initialize and run Discord Presence alongside the emulator as shown below:Let's talk the 19 digit Discord API key "XXXXXXXXXXXXXXXXXXX": I used my custom key and it worked, so the owner of the repository or someone with higher privileges needs to go to the Discord Developer Portal and get a key, I could otherwise configure this. That being said, all the functionality is there, and we are 1-key away. As for
main.cppI didn't want to mess with that directly in this merge request, therefore I am just showing what I did.All files conform to the project's style guide:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.