logger.info("Internet validation and look and feel took " + (System.currentTimeMillis() - start) + " ms");
start = System.currentTimeMillis();
}
// Set up the launcher and load login frame
LoginFrame frame = new MetroLoginFrame();
try {
@SuppressWarnings("unused")
Launcher launcher = new Launcher(new GameUpdater(), new GameLauncher(), frame);
} catch (IOException failure) {
failure.printStackTrace();
ErrorDialog dialog = new ErrorDialog(frame, failure);
splash.dispose();
frame.setVisible(true);
dialog.setAlwaysOnTop(true);
dialog.setVisible(true);
return;
}
Launcher.getGameUpdater().start();
if (Settings.isDebugMode()) {
logger.info("Loading default launcher skin took " + (System.currentTimeMillis() - start) + " ms");
start = System.currentTimeMillis();
}
splash.dispose();
frame.setVisible(true);
if (params.hasAccount()) {
frame.disableForm();
frame.doLogin(params.getUser(), params.getPass());
}
logger.info("Launcher startup took " + (System.currentTimeMillis() - startupTime) + "ms");
}