Mega rejig!

This commit is contained in:
David Stephens 2017-11-22 23:27:33 +00:00
parent 617f0ef07e
commit 57d46dd57e
129 changed files with 153 additions and 154 deletions

View File

@ -111,11 +111,8 @@ function init(configPath, options, cb) {
} }
function getDefaultPath() { function getDefaultPath() {
const base = miscUtil.resolvePath('~/'); // e.g. /enigma-bbs-install-path/config/config.hjson
if(base) { return './config/config.hjson';
// e.g. /home/users/joeuser/.config/enigma-bbs/config.hjson
return paths.join(base, '.config', 'enigma-bbs', 'config.hjson');
}
} }
function getDefaultConfig() { function getDefaultConfig() {
@ -193,15 +190,17 @@ function getDefaultConfig() {
}, },
paths : { paths : {
mods : paths.join(__dirname, './../mods/'), config : paths.join(__dirname, './../config/'),
mods : paths.join(__dirname, './../mods/system'),
userMods : paths.join(__dirname, './../mods/user'),
loginServers : paths.join(__dirname, './servers/login/'), loginServers : paths.join(__dirname, './servers/login/'),
contentServers : paths.join(__dirname, './servers/content/'), contentServers : paths.join(__dirname, './servers/content/'),
scannerTossers : paths.join(__dirname, './scanner_tossers/'), scannerTossers : paths.join(__dirname, './scanner_tossers/'),
mailers : paths.join(__dirname, './mailers/') , mailers : paths.join(__dirname, './mailers/') ,
art : paths.join(__dirname, './../mods/art/'), art : paths.join(__dirname, './../art/general/'),
themes : paths.join(__dirname, './../mods/themes/'), themes : paths.join(__dirname, './../art/themes/'),
logs : paths.join(__dirname, './../logs/'), // :TODO: set up based on system, e.g. /var/logs/enigmabbs or such logs : paths.join(__dirname, './../logs/'), // :TODO: set up based on system, e.g. /var/logs/enigmabbs or such
db : paths.join(__dirname, './../db/'), db : paths.join(__dirname, './../db/'),
modsDb : paths.join(__dirname, './../db/mods/'), modsDb : paths.join(__dirname, './../db/mods/'),

Some files were not shown because too many files have changed in this diff Show More