MCPcopy Create free account
hub / github.com/GrowthEase/GameSentry / dump_lua_decrypt

Function dump_lua_decrypt

index.js:445–463  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

443}
444
445function 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
465function onMessage(message, data) {
466 if (!message.payload) {

Callers 1

index.jsFile · 0.85

Calls 2

walk_syncFunction · 0.85
exec_outputFunction · 0.85

Tested by

no test coverage detected