allow .debug module to load for shared electron/debug modules. filter defines from macros. add bambu check before attempted file send
This commit is contained in:
parent
0cd9ec0f39
commit
fa116bf277
5 changed files with 8 additions and 3 deletions
3
app.js
3
app.js
|
|
@ -335,9 +335,10 @@ function init(mod) {
|
|||
if (dir.charAt(0) === '.') return;
|
||||
const stats = fs.lstatSync(`${mod.dir}/${modpath}`);
|
||||
if (!(stats.isDirectory() || stats.isSymbolicLink())) return;
|
||||
const isDebugMod = util.isfile(PATH.join(mod.dir,modpath,".debug"));
|
||||
const isElectronMod = util.isfile(PATH.join(mod.dir,modpath,".electron"));
|
||||
if (ENV.electron && !isElectronMod) return;
|
||||
if (!ENV.electron && isElectronMod) return;
|
||||
if (!ENV.electron && isElectronMod && !isDebugMod) return;
|
||||
try {
|
||||
loadModule(mod, modpath);
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue