Back
SwitchPresence-Rewritten
by SunTheCourier
|
Version | 1.8.2 |
Zip size | 475 KiB |
License | GPLv2 |
Updated | 27/07/2020 |
Downloads | 4,845 |
MD5 | 0e7a70cd36b6f773b6c06fd49d2dd423 |
App Details
Change your Discord rich presence to your currently playing Nintendo Switch game! Concept taken from SwitchPresence by Random
Setup
General switch setup can be found here : https://switch.homebrew.guide
Simply Create an application at the Discord Developer Portal call your application Nintendo Switch or whatever you would like and then enter your client ID and switch's IP into the SwitchPresence client!
You can also optionally dump game icons using a helper homebrew included in releases it will also give you the option to toggle the SwitchPresence sysmodule!
After you have dumped the icons you can bulk upload them to your Discord Developer Application under Rich Presence->Art Assets you can upload them with the name given to them on dump or optionally upload your own icon and set the SwitchPresence client to load that icon using the name of the custom icon.
Technical Info
The protocol for the sysmodule is a very simple struct sent via TCP
struct titlepacket
{
u32 magic; //Padded to 8 bytes by the compiler
u64 tid;
char name[512];
};
Please note that magic is padded to 8 bytes which can be read into a u64 if wanted
The Packet is sent about every 5 seconds to the client from the server (in this case the switch).
If a client is not connect it will not send anything.
Changelog
1.8.2
Fixed connecting to PresenceClient
1.8.1
The SwitchPresence Client has moved! you can now find it at PresenceClient.
Server
Received breaking changes, make sure to switch to PresenceClient!
1.8
Client
Presence data will now persist up to a minute after the server or client disconnects
Server
Memory footprint greatly decreased
Threads should now be lower priority allowing for a tiny performance gain
Update frequency increased from every 5 seconds to every second.
Switch toolbox json included
1.7
https://github.com/Sun-Research-University/SwitchPresence-Rewritten/releases/tag/v1.7
1.6.1
hotfix
1.6
Updated to support AMS v0.10.0 and greater
If you installed AMS v0.10.1 and your switch crashes, reinstall AMS v0.10.1 as there was a shadow bug fix to the release
Updated to use libnx v3.0.0
1.5
Proper Icon Added (#15)
Allow for special characters to be displayed properly in Discord (this will allows games like Pokémon Sword/Shield with the character é to show up properly in rich presence!)
1.4.2
Fixed an issue where sysmodule would not launch at all
Fixed an issue where pressing B on the main menu would not exit the homebrew
1.4.1
Fixed an issue where Manager Homebrew would not enable/disable SwitchPresence
1.4
Fixed an issue where MAC address lookups failed (#12)
Fixed an issue where icons would fail to dump (#10)
Rewrote lots of code to better improve performance for the manager application (#11)
1.3
Client is now able to take a MAC address to connect to the switch (this can automatically be taken when the switch is connected using the IP)
Many bug fixes
Thanks to @cathery (#7) for all the code for these features and fixes!
1.2.2
Recompiled with latest LibNX for fw 9.0.0 compatibility
Client
Fixed a bug where if the server was shut down via manager, client would stay connected