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

Init of Discord Rich Presence for Slippi #17

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

TheAndersMadsen
Copy link

  • Currently not working

@JLaferri JLaferri marked this pull request as draft January 29, 2024 20:49
TheAndersMadsen and others added 12 commits January 29, 2024 22:07
Removing tokio (partly done) (untested)
The core code was temporarily moved into `discord-rpc/src/bin.rs`, and a
new `discord-rpc/src/lib.rs` now exists which stubs out the general flow
of how the "handle" should work. This will compile cleanly and "run",
albeit do nothing - but now the Discord work that Anders has done can be
layered in.

This removed a few dependencies from `discord-rpc` that caused
compilation issues on non-Windows-x86-64 machines (e.g, windows, tray,
ruspiro-singleton). The approach this lib has to take to integrate with
Dolphin also likely means we won't need these, but I wanted to make a
note to be safe.

No actual core logic of the feature has been touched.
This part might change but it makes some development pieces easier at
the moment.
Making jukebox the foundation for the discord rpc
This data is only accessible after both the EXI device
and the memory subsystem have initialized, so there's now a new
callback that is notified after initialization of both has completed.

This callback is also where the Discord handler is launched; there may
still be ongoing work here regarding preferences/launching/etc, so WIP.

This also corrects the log name to match the one in the Ishiiruka repo.
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.

3 participants