|
|
@ -22,7 +22,9 @@ require('./cmdSwitches')();
|
|
|
|
const M = require('module'); // Module
|
|
|
|
const M = require('module'); // Module
|
|
|
|
|
|
|
|
|
|
|
|
const b = join(paths.getExeDir(), 'modules'); // Base dir
|
|
|
|
const b = join(paths.getExeDir(), 'modules'); // Base dir
|
|
|
|
if (process.platform === 'win32') for (const m of require('fs').readdirSync(b)) M.globalPaths.push(join(b, m)); // For each module dir, add to globalPaths
|
|
|
|
if (process.platform === 'win32') try {
|
|
|
|
|
|
|
|
for (const m of require('fs').readdirSync(b)) M.globalPaths.push(join(b, m)); // For each module dir, add to globalPaths
|
|
|
|
|
|
|
|
} catch { log('Init', 'Failed to QS globalPaths') }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (process.argv.includes('--overlay-host')) { // If overlay
|
|
|
|
if (process.argv.includes('--overlay-host')) { // If overlay
|
|
|
|