Package codechicken.lib.config

Examples of codechicken.lib.config.DefaultingConfigFile


    private static ConfigFile loadConfig() {
        try {//weak reference for environments without FML
            File mcDir = (File)((Object[])Class.forName("cpw.mods.fml.relauncher.FMLInjectionData").getMethod("data").invoke(null))[6];
            File file = new File(mcDir, "config/CodeChickenLib.cfg");
            if(ObfMapping.obfuscated)
                return new DefaultingConfigFile(file);
            else
                return new ConfigFile(file).setComment("CodeChickenLib development configuration file.");
        } catch (Exception ignored) {
            return null;//no config for these systems
        }
View Full Code Here


    private static ConfigFile loadConfig() {
        try {//weak reference for environments without FML
            File mcDir = (File)((Object[])Class.forName("cpw.mods.fml.relauncher.FMLInjectionData").getMethod("data").invoke(null))[6];
            File file = new File(mcDir, "config/CodeChickenLib.cfg");
            if(ObfMapping.obfuscated)
                return new DefaultingConfigFile(file);
            else
                return new ConfigFile(file).setComment("CodeChickenLib development configuration file.");
        } catch (Exception ignored) {
            return null;//no config for these systems
        }
View Full Code Here

TOP

Related Classes of codechicken.lib.config.DefaultingConfigFile

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.