ThePhaseCat / phases-discord-rich-presence

Adding Discord Rich Presence to Minecraft in a simple and light way!
MIT License
5 stars 2 forks source link

Switch Linker Libraries #9

Open ThePhaseCat opened 1 month ago

ThePhaseCat commented 1 month ago

The current linker/binding library is outdated and hasn't been updated since 2021. As such, it's missing some stuff and support for arm-based devices. The best course of action would be to migrate, and it seems like this repo (https://github.com/JnCrMx/discord-game-sdk4j) is the best bet for now as it's actually up-to-date and maintained.

This would be for the next update, and this would take a while as I basically need to recode/change all of the discord related stuff. Due to how big of an update this would be, I'll be working on this in a separate branch which will also be separate from any 1.6 related work I want to do in the near future.

DeveloLongScript commented 1 month ago

Maybe try using something like KDiscordIPC, used in the Essential mod as its both multi-platform and supports every feature, including grabbing somebodies username and discriminator when the IPC starts

It is built with Kotlin, however you could make a wrapper around it made in Java, or just make a companion Kotlin file with Kotlin Language support, which you can call methods from in the Java code.

ThePhaseCat commented 1 month ago

I've been pretty busy this week because of midterms but I was messing around on Monday and I was unsuccessful in getting either library working properly.