mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-23 04:02:14 -08:00
31 lines
624 B
JavaScript
31 lines
624 B
JavaScript
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
|