1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-16 08:13:30 +00:00

1.) Fixed base folder bug if single file is passed

2.) Updated db JavaScript object to support compressed records
This commit is contained in:
Bryan Roe
2020-06-24 00:44:49 -07:00
parent e3c20eb6c5
commit f97ebdbdd4
4 changed files with 15 additions and 4 deletions

View File

@@ -126,7 +126,7 @@ if (process.argv.length > 1)
{
var src = require('fs').readFileSync(process.argv[2] + '.js', 'rb');
var src2 = Buffer.concat([Buffer.alloc(4), src]);
db.Put('CoreModule', src2);
db.PutCompressed('CoreModule', src2);
console.log(process.argv[2] + ' imported');
}
process.exit();

View File

@@ -54,6 +54,7 @@ function getBaseFolder(val)
if (val.length == 1)
{
if (test[0].length == 1) { return (''); }
test[0].pop();
return (test.join(D) + D);
}