Search in sources :

Example 1 with AMConfig

use of am2.configuration.AMConfig in project ArsMagica2 by Mithion.

the class AMCore method preInit.

@EventHandler
public void preInit(FMLPreInitializationEvent event) {
    String configBase = event.getSuggestedConfigurationFile().getAbsolutePath();
    configBase = popPathFolder(configBase);
    compendiumBase = popPathFolder(configBase);
    configBase += File.separatorChar + "AM2" + File.separatorChar;
    config = new AMConfig(new File(configBase + File.separatorChar + "AM2.cfg"));
    skillConfig = new SkillConfiguration(new File(configBase + "SkillConf.cfg"));
    AMNetHandler.INSTANCE.init();
    proxy.InitializeAndRegisterHandlers();
    proxy.preinit();
}
Also used : SkillConfiguration(am2.configuration.SkillConfiguration) File(java.io.File) AMConfig(am2.configuration.AMConfig) EventHandler(cpw.mods.fml.common.Mod.EventHandler)

Aggregations

AMConfig (am2.configuration.AMConfig)1 SkillConfiguration (am2.configuration.SkillConfiguration)1 EventHandler (cpw.mods.fml.common.Mod.EventHandler)1 File (java.io.File)1