Major progress on revamp
* Deprecated explicit prompt.hjson/general.promptFile, etc.: menu.hjson can simply include any number of files * All menus and themes, their events, etc. are managed by ThemeManager allowing includes, refs, etc. and much cleaner code
This commit is contained in:
@@ -162,15 +162,14 @@ class Achievements {
|
||||
}
|
||||
};
|
||||
|
||||
const configOptions = {
|
||||
this.config = new ConfigLoader({
|
||||
onReload : err => {
|
||||
if (!err) {
|
||||
configLoaded();
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
this.config = new ConfigLoader(configOptions);
|
||||
this.config.init(configPath, err => {
|
||||
if (err) {
|
||||
return cb(err);
|
||||
|
||||
Reference in New Issue
Block a user