mirror of
https://github.com/CPunch/LuaDecompy.git
synced 2024-11-23 15:10:09 +00:00
14 lines
266 B
Python
14 lines
266 B
Python
import sys
|
|
import lundump
|
|
import lparser
|
|
|
|
lc = lundump.LuaUndump()
|
|
print(sys.argv[1])
|
|
chunk = lc.loadFile(sys.argv[1])
|
|
|
|
lc.print_dissassembly()
|
|
|
|
lp = lparser.LuaDecomp(chunk)
|
|
|
|
print("\n==== [[" + str(chunk.name) + "'s pseudo-code]] ====\n")
|
|
print(lp.getPseudoCode()) |