unmojang / FjordLauncher

Prism Launcher fork with support for alternative auth servers
GNU General Public License v3.0
78 stars 14 forks source link

Allow using custom authlib-injector JAR #21

Closed evan-goode closed 2 months ago

evan-goode commented 2 months ago

Includes a C++ port of a OpenJDK's MANIFEST.MF parser, which might be useful by upstream Prism Launcher in launcher/minecraft/mod/tasks/LocalModParseTask.cpp. The parser they currently use is fragile.

With this patch, Fjord Launcher users can use a custom authlib-injector JAR by clicking "Add Agents" and selecting their JAR. We identify authlib-injector JARs by parsing the JAR's MANIFEST.MF and checking whether the Agent-Class field matches moe.yushi.authlibinjector.Premain.

Related: https://github.com/fn2006/PollyMC/discussions/173.