Files
tsvm/assets/disk0/home/hdk/decompile.js
2025-12-18 10:29:46 +09:00

8 lines
326 B
JavaScript

if (exec_args[1] === undefined) {
println("Usage: decompile myfile.exc")
println("The compiled file will be myfile.exc.js")
return 1
}
_G.shell.execute(`enc ${exec_args[1]} ${exec_args[1]}.gz`)
_G.shell.execute(`gzip -c -d ${exec_args[1]}.gz | writeto ${exec_args[1]}.js`)
_G.shell.execute(`rm ${exec_args[1]}.gz`)