mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-10 15:19:24 +07:00
d849a3a87f
* Steam Rich Presence support. I opted to put this code inside of DesktopLauncher.java instead of SNet.java because it heavily overlaps with the work the DiscordRPC code was already doing. Testing wasn't easy because I had to figure out how the Steam version actually runs normally, but it was straightforward once I figured out what version information to slam into the JAR and fixed 'desktop:steamtest' to work locally with my paths. Because of how Steam currently expects SetRichPresence to be used, I had to upload to the Steam partner site a trivial Rich Presence loc token called 'steam_status_raw' that just gets entirely substituted for the 'steam_status' RP token string. I didn't expect that I'd need to do anything for localization support (and instead just let it use English for everyone like Discord) but apparently Steam isn't happy if you directly set 'steam_display' to a raw string (but I'm going to look at that when I'm back at work because I don't know that we need that requirement.) * Whoops, left this in there from debugging the Steam connection. * Fixing coding style, and also triggering another CI build |
||
---|---|---|
.. | ||
src/mindustry/desktop | ||
build.gradle | ||
packr_minimize.json |