Try javafx again
This commit is contained in:
1 parent
6aafd7f3aa
commit
62fde952c2
9 files changed
+21
-91
No files matched your search
@@ -14,6 +14,7 @@ import net.kdt.pojavlaunch.value.*;
|
||||
public class PLaunchApp {
|
||||
public static JMinecraftVersionList mVersionList;
|
||||
public static void main(String[] args) throws Throwable {
|
||||
System.setProperty("os.name", "iOS");
|
||||
System.setProperty("javafx.verbose", "true");
|
||||
System.setProperty("javafx.platform", "ios");
|
||||
System.setProperty("glass.platform", "ios");
|
||||
|
||||
@@ -10,11 +10,16 @@ import javafx.stage.Stage;
|
||||
|
||||
public class PLaunchJFXApp extends Application {
|
||||
public void start(Stage stage) {
|
||||
/*
|
||||
Circle circ = new Circle(40, 40, 30);
|
||||
Group root = new Group(circ);
|
||||
Scene scene = new Scene(root, 400, 300);
|
||||
stage.setTitle("My JavaFX Application");
|
||||
stage.setScene(scene);
|
||||
stage.show();
|
||||
*/
|
||||
System.setProperty("os.name", "Mac OS X");
|
||||
|
||||
PLaunchApp.launchMinecraft();
|
||||
}
|
||||
}
|
||||
@@ -89,7 +89,7 @@ public final class Tools
|
||||
Class<?> clazz = loader.loadClass(versionInfo.mainClass);
|
||||
Method method = clazz.getMethod("main", String[].class);
|
||||
method.invoke(null, new Object[]{launchArgs});
|
||||
|
||||
|
||||
} catch (Throwable th) {
|
||||
throw new RuntimeException(th);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user