Create configmanager.js
Add methods for set test mode and check if test mode
This commit is contained in:
parent
779a9a54ec
commit
4b06d48e41
@ -103,7 +103,8 @@ const DEFAULT_CONFIG = {
|
||||
selectedServer: null, // Resolved
|
||||
selectedAccount: null,
|
||||
authenticationDatabase: {},
|
||||
modConfigurations: []
|
||||
modConfigurations: [],
|
||||
testDistro: false
|
||||
}
|
||||
|
||||
let config = null
|
||||
@ -158,6 +159,14 @@ exports.load = function(){
|
||||
logger.log('Successfully Loaded')
|
||||
}
|
||||
|
||||
exports.setTesting = function(v){
|
||||
config.testDistro = v ? true: false
|
||||
exports.save()
|
||||
}
|
||||
|
||||
exports.isTesting = function(){
|
||||
return config.testDistro
|
||||
}
|
||||
/**
|
||||
* @returns {boolean} Whether or not the manager has been loaded.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user