[FEATURE] Support run Minecraft with Wayland

This commit is contained in:
Gravita 2023-12-01 20:26:06 +07:00
parent ee0a7bc25a
commit 2ff1d81076
3 changed files with 6 additions and 1 deletions

View file

@ -173,6 +173,10 @@ private static void realMain(String[] args) throws Throwable {
if(profile.hasFlag(ClientProfile.CompatibilityFlags.CLASS_CONTROL_API)) {
ClientService.classLoaderControl = classLoaderControl;
}
if(params.lwjglGlfwWayland) {
String glfwPath = ClientService.findLibrary("glfw_wayland");
System.setProperty("org.lwjgl.glfw.libname", glfwPath);
}
AuthService.username = params.playerProfile.username;
AuthService.uuid = params.playerProfile.uuid;
KeyService.serverRsaPublicKey = Launcher.getConfig().rsaPublicKey;

View file

@ -35,6 +35,7 @@ public class ClientParams {
public boolean autoEnter;
public boolean fullScreen;
public boolean lwjglGlfwWayland;
public int ram;

@ -1 +1 @@
Subproject commit 54f04dd7794ebb7c8397b21397c30cec62a0815e
Subproject commit 4d376aa6fcb2167cef2fc5ed373d560ebea6e483