Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LauncherFrame.getInstance();
- GameLauncher gameLauncher = new GameLauncher(M4C_INFOS, GameFolder.BASIC,
- new AuthInfos(usernameField, "sry", "nope"),
- new String[] { "-Xms512M", "-Xmx" + ram });
- try {
- Process p = gameLauncher.launch();
- Thread.sleep(3000L);
- LauncherFrame.getInstance().setVisible(false);
- p.waitFor();
- System.exit(0);
- } catch (IOException e) {
- e.printStackTrace();
- Launcher.getErrorUtil().catchError(e, "impossible de lancer Mine4Craft");
- System.exit(1);
- } catch (InterruptedException e) {
- Launcher.getErrorUtil().catchError(e, "impossible de lancer Mine4Craft");
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- System.exit(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment