observer added, database added to improve fault tolerance, config fixed, ping added, port allocation improved, session observer added, multiple checks added, run process improved, process running check added, fault tolerance improved
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
const titles = require('../../titles.json')
|
||||
const fs = require('fs')
|
||||
|
||||
const get_app_path = (title) => {
|
||||
var path
|
||||
titles.forEach((current_title) => {
|
||||
if (current_title.title == title) {
|
||||
if (fs.existsSync(current_title.path)) {
|
||||
path = current_title.path
|
||||
} else {
|
||||
console.log(`file not exists ${current_title.path}`)
|
||||
}
|
||||
}
|
||||
})
|
||||
return (path) ? path : null
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
get_app_path
|
||||
}
|
||||
Reference in New Issue
Block a user