= Set up interface parsing
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user