From 11361165f5a52ce6e7c0587fa358aa0aadb53aca Mon Sep 17 00:00:00 2001 From: khanhduytran0 Date: Tue, 5 Jan 2021 10:59:45 +0700 Subject: [PATCH] Add javafx properties --- .../main/java/net/kdt/pojavlaunch/PLaunchApp.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/JavaApp/src/main/java/net/kdt/pojavlaunch/PLaunchApp.java b/JavaApp/src/main/java/net/kdt/pojavlaunch/PLaunchApp.java index 82649bdd..bf0205e0 100644 --- a/JavaApp/src/main/java/net/kdt/pojavlaunch/PLaunchApp.java +++ b/JavaApp/src/main/java/net/kdt/pojavlaunch/PLaunchApp.java @@ -14,6 +14,18 @@ import net.kdt.pojavlaunch.value.*; public class PLaunchApp { public static JMinecraftVersionList mVersionList; public static void main(String[] args) throws Throwable { + System.setProperty("javafx.verbose", "true"); + System.setProperty("javafx.platform", "ios"); + System.setProperty("glass.platform", "ios"); + System.setProperty("jfxmedia.platforms", "IOSPlatform"); + System.setProperty("com.sun.javafx.isEmbedded", "true"); + + System.setProperty("prism.verbose", "true"); + System.setProperty("prism.allowhidpi", "true"); + System.setProperty("prism.mintexturesize", "16"); + System.setProperty("prism.static.libraries", "false"); + System.setProperty("prism.useNativeIIO", "false"); + if (args[0].startsWith("/Applications/")) { System.out.println("We are on java now! Starting UI..."); org.lwjgl.glfw.CallbackBridge.nativeLaunchUI(args);