= 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);
if(configFile.exists())
{
String configContents = FileUtils.readContent(new File(filepath));
String configContents = FileUtils.readContent(configFile);
reformConfig(configContents);
}
else
@@ -76,14 +76,16 @@ public class Config
{
for(IConfigSection section : sections)
{
// Parse stuff and sections here based on interface
}
}
public void upkeep()
{
configFile.update((monitoredFile) -> {
monitoredFile.path
monitoredConfigFile.update((monitoredFile) -> {
File configFile = new File(filepath);
String configContents = FileUtils.readContent(configFile);
reformConfig(configContents);
});
}