src/main/java/net/glasslauncher/legacy/Config.java
public static void loadConfigFiles() {
        Gson gson = new Gson();
        mcVersions = gson.fromJson(new InputStreamReader(Main.class.getResourceAsStream("assets/mcversions.json")), MCVersions.class);
        launcherConfig = (LauncherConfig) JsonConfig.loadConfig(CommonConfig.getGlassPath() + "launcher_config.json", LauncherConfig.class);
        if (launcherConfig == null) {
            Main.LOGGER.info("Generating new launcher config.");
            launcherConfig = new LauncherConfig(CommonConfig.getGlassPath() + "launcher_config.json");
        }
    }
/**
     * Loads various autogenerated config files.
     */
Loads various autogenerated config files.
Loads various autogenerated config files .
public static void loadConfigFiles() {
        Gson gson = new Gson();
        mcVersions = gson.fromJson(new InputStreamReader(Main.class.getResourceAsStream("assets/mcversions.json")), MCVersions.class);
        launcherConfig = (LauncherConfig) JsonConfig.loadConfig(CommonConfig.getGlassPath() + "launcher_config.json", LauncherConfig.class);
        if (launcherConfig == null) {
            Main.LOGGER.info("Generating new launcher config.");
            launcherConfig = new LauncherConfig(CommonConfig.getGlassPath() + "launcher_config.json");
        }
    }
public static void loadConfigFiles ( ) { Gson gson = new Gson ( ) ; mcVersions = gson . fromJson ( new InputStreamReader ( Main . class . getResourceAsStream ( "assets/mcversions.json" ) ) , MCVersions . class ) ; launcherConfig = ( LauncherConfig ) JsonConfig . loadConfig ( CommonConfig . getGlassPath ( ) + "launcher_config.json" , LauncherConfig . class ) ; if ( launcherConfig == null ) { Main . LOGGER . info ( "Generating new launcher config." ) ; launcherConfig = new LauncherConfig ( CommonConfig . getGlassPath ( ) + "launcher_config.json" ) ; } }
Loads various autogenerated config files.
Loads various autogenerated config files .