HeliosLauncher/app/assets/extraverif/parserExtraverif.js

31 lines
624 B
JavaScript
Raw Normal View History

const fs = require('fs')
const path = require('path')
const configPath = path.join(__dirname, 'variables.json')
class ExtraFileVerification {
constructor() {
this.config = this.loadConfig()
}
loadConfig() {
const rawData = fs.readFileSync(configPath)
return JSON.parse(rawData.toString())
}
get status() {
return this.config.extraFileVerifActivated
}
get type() {
return this.config.menuVisibility
}
get debug() {
return this.config.debug
}
}
const athenaShieldInstance = new AthenaShield()
module.exports = athenaShieldInstance