mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FEATURE] Support run Minecraft with Wayland
This commit is contained in:
parent
ee0a7bc25a
commit
2ff1d81076
3 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -35,6 +35,7 @@ public class ClientParams {
|
|||
public boolean autoEnter;
|
||||
|
||||
public boolean fullScreen;
|
||||
public boolean lwjglGlfwWayland;
|
||||
|
||||
public int ram;
|
||||
|
||||
|
|
2
modules
2
modules
|
@ -1 +1 @@
|
|||
Subproject commit 54f04dd7794ebb7c8397b21397c30cec62a0815e
|
||||
Subproject commit 4d376aa6fcb2167cef2fc5ed373d560ebea6e483
|
Loading…
Reference in a new issue