LuaDecompy/main.py

15 lines
289 B
Python
Raw Permalink Normal View History

#!/usr/bin/env python3
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())