= Set up interface parsing

This commit is contained in:
Matthew Cech
2019-06-20 00:27:16 -07:00
parent 2b781325f5
commit 0a1934393b
+6 -4
View File
@@ -55,7 +55,7 @@ public class Config
File configFile = new File(filepath); File configFile = new File(filepath);
if(configFile.exists()) if(configFile.exists())
{ {
String configContents = FileUtils.readContent(new File(filepath)); String configContents = FileUtils.readContent(configFile);
reformConfig(configContents); reformConfig(configContents);
} }
else else
@@ -76,14 +76,16 @@ public class Config
{ {
for(IConfigSection section : sections) for(IConfigSection section : sections)
{ {
// Parse stuff and sections here based on interface
} }
} }
public void upkeep() public void upkeep()
{ {
configFile.update((monitoredFile) -> { monitoredConfigFile.update((monitoredFile) -> {
monitoredFile.path File configFile = new File(filepath);
String configContents = FileUtils.readContent(configFile);
reformConfig(configContents);
}); });
} }