mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-11 23:24:43 +02:00
Mega rejig!
This commit is contained in:
parent
617f0ef07e
commit
57d46dd57e
129 changed files with 153 additions and 154 deletions
|
@ -1,16 +1,15 @@
|
|||
/* jslint node: true */
|
||||
'use strict';
|
||||
|
||||
var configCache = require('./config_cache.js');
|
||||
|
||||
var paths = require('path');
|
||||
const Config = require('./config.js').config;
|
||||
const configCache = require('./config_cache.js');
|
||||
const paths = require('path');
|
||||
|
||||
exports.getFullConfig = getFullConfig;
|
||||
|
||||
function getFullConfig(filePath, cb) {
|
||||
// |filePath| is assumed to be in 'mods' if it's only a file name
|
||||
if('.' === paths.dirname(filePath)) {
|
||||
filePath = paths.join(__dirname, '../mods', filePath);
|
||||
filePath = paths.join(Config.paths.config, filePath);
|
||||
}
|
||||
|
||||
configCache.getConfig(filePath, function loaded(err, configJson) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue