Commit e30c8ea3 authored by liujiahua123123's avatar liujiahua123123

UDP client

parent bbc1f717
...@@ -33,6 +33,9 @@ public class MiraiConfig { ...@@ -33,6 +33,9 @@ public class MiraiConfig {
} }
this.file = file; this.file = file;
try { try {
if(file.exists()){
file.createNewFile();
}
Config config = new Config(); Config config = new Config();
config.setMultiSection(true); config.setMultiSection(true);
ini = new Ini(); ini = new Ini();
...@@ -78,6 +81,7 @@ public class MiraiConfig { ...@@ -78,6 +81,7 @@ public class MiraiConfig {
} }
a.saveAsSection(ini.get(k)); a.saveAsSection(ini.get(k));
}); });
this.clearCache();
try { try {
ini.store(file); ini.store(file);
} catch (IOException e) { } catch (IOException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment