Package org.terasology.launcher.game

Examples of org.terasology.launcher.game.TerasologyGameVersions


            // game directories
            updateMessage(BundleUtils.getLabel("splash_initGameDirs"));
            final File gameDirectory = getGameDirectory(os, launcherSettings.getGameDirectory());
            final File gameDataDirectory = getGameDataDirectory(os, launcherSettings.getGameDataDirectory());

            final TerasologyGameVersions gameVersions = getTerasologyGameVersions(launcherDirectory, gameDirectory, launcherSettings);

            logger.trace("Change LauncherSettings...");
            launcherSettings.setGameDirectory(gameDirectory);
            launcherSettings.setGameDataDirectory(gameDataDirectory);
            gameVersions.fixSettingsBuildVersion(launcherSettings);

            storeLauncherSettingsAfterInit(launcherSettings);

            logger.trace("Creating launcher frame...");
View Full Code Here


    }

    private TerasologyGameVersions getTerasologyGameVersions(File launcherDirectory, File gameDirectory, LauncherSettings launcherSettings) {
        logger.trace("Init TerasologyGameVersions...");
        updateMessage(BundleUtils.getLabel("splash_loadGameVersions"));
        final TerasologyGameVersions gameVersions = new TerasologyGameVersions();
        gameVersions.loadGameVersions(launcherSettings, launcherDirectory, gameDirectory);
        if (logger.isInfoEnabled()) {
            for (GameJob gameJob : GameJob.values()) {
                logger.info("Game versions: {} {}", gameJob, gameVersions.getGameVersionList(gameJob).size() - 1);
            }
        }
        logger.debug("Game versions: {}", gameVersions);
        return gameVersions;
    }
View Full Code Here

TOP

Related Classes of org.terasology.launcher.game.TerasologyGameVersions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.