/**
* Creates the config file if it doesn't exist yet.
* If there are exceptions the stacktrace will be printed.
*/
private void createFile() {
if (file == null) {
new InvalidConfigurationException("File cannot be null!").printStackTrace();
}
try {
if (!file.exists()) {
if (file.getParentFile() != null) {
file.getParentFile().mkdirs();
}
file.createNewFile();
}
} catch (Exception e) {
e.printStackTrace();
}
}
OptionCfg.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:GameBoxx
作者:
评论列表
文章目录