public static void noUiStart() throws Exception{
AppConfig.firstInit();
prod = AppConfig.getProd();
appFileUtil = new AppFileUtil();
if(!appFileUtil.success()){
System.err.println(appFileUtil.getErrorMessage());
System.exit(-1);
}
// ignore everything else because this means that we're in a jar file, so the app won't work
// if it doesn't think that we're prod.
PropertyConfigurator.configure(appFileUtil.getLog4JFile().getAbsolutePath());
AppConfig.init();
String defaultLocationString = AppConfig.config.getString(AppConfig.WORLD_LOCATION);
File defaultLocation = new File(defaultLocationString);
defaultLocation.mkdirs();
String relativePath = new File(".").toURI().relativize(defaultLocation.toURI()).getPath();
AppConfig.saveDefaultWorldLocation("./" + relativePath);
App.worldFileUtil = new WorldFileUtil(new File(AppConfig.config.getString(AppConfig.WORLD_LOCATION)));
Backend.start();
}
App.java 文件源码
java
阅读 39
收藏 0
点赞 0
评论 0
项目:fwm
作者:
评论列表
文章目录