mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-12 07:44:03 +09:00
preliminary Clustered Virtual Disk; hardware dev kit wip
This commit is contained in:
9
assets/disk0/home/hdk/decompile.js
Normal file
9
assets/disk0/home/hdk/decompile.js
Normal file
@@ -0,0 +1,9 @@
|
||||
if (exec_args[1] === undefined) {
|
||||
println("Usage: decompile myfile.bin")
|
||||
println("The compiled file will be myfile.bin.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`)
|
||||
Reference in New Issue
Block a user