New Config class working quite well for system config. Menu.hjson/etc. to come

This commit is contained in:
Bryan Ashby 2020-06-11 21:16:15 -06:00
parent 37bc2fc3aa
commit 9394730011
No known key found for this signature in database
GPG key ID: B49EB437951D2542
4 changed files with 128 additions and 266 deletions

View file

@ -35,7 +35,7 @@ module.exports = new class ConfigCache
this.recacheConfigFromFile(paths.join(fileRoot, fileName), err => {
if(!err) {
if(options.callback) {
options.callback( { fileName, fileRoot } );
options.callback( { fileName, fileRoot, configCache : this } );
}
}
});