updateMessage(BundleUtils.getLabel("splash_chooseGameDataDirectory"));
gameDataDirectory = GuiUtils.chooseDirectoryDialog(owner, DirectoryUtils.getGameDataDirectory(os),
BundleUtils.getLabel("message_dialog_title_chooseGameDataDirectory"));
if (gameDataDirectory == null) {
logger.info("The new game data directory is not approved. The TerasologyLauncher is terminated.");
throw new LauncherStartFailedException();
}
}
try {
DirectoryUtils.checkDirectory(gameDataDirectory);
} catch (IOException e) {
logger.error("The game data directory can not be created or used! '{}'", gameDataDirectory, e);
GuiUtils.showErrorMessageDialog(null, BundleUtils.getLabel("message_error_gameDataDirectory") + "\n" + gameDataDirectory);
throw new LauncherStartFailedException();
}
logger.debug("Game data directory: {}", gameDataDirectory);
return gameDataDirectory;
}