()
| 443 | } |
| 444 | |
| 445 | function dump_lua_decrypt() { |
| 446 | if (!fs.existsSync('./tools/unlua')) { |
| 447 | fs.mkdirSync('./tools/unlua') |
| 448 | } |
| 449 | walk_sync('./tools/luadump', function (filePath, stat) { |
| 450 | if (filePath !== 'tools\\luadump\\chunk' && filePath !== 'tools\\luadump\\Init') { |
| 451 | const dump_path = filePath.substring(14) |
| 452 | const sub_path = dump_path.substring(0, dump_path.lastIndexOf("\\")) |
| 453 | let make_path = "./tools/unlua/" |
| 454 | sub_path.split("\\").forEach(function (file, index) { |
| 455 | make_path += file + "/" |
| 456 | if (!fs.existsSync(make_path)) { |
| 457 | fs.mkdirSync(make_path) |
| 458 | } |
| 459 | }) |
| 460 | exec_output('java -jar ' + __dirname + "\\tools\\lua\\" + "unluac.jar " + __dirname + "\\" + filePath + " > " + __dirname + "\\" + filePath.replace("tools\\luadump\\", "tools\\unlua\\")) |
| 461 | } |
| 462 | }) |
| 463 | } |
| 464 | |
| 465 | function onMessage(message, data) { |
| 466 | if (!message.payload) { |
no test coverage detected