mirror of
https://github.com/CPunch/LuaDecompy.git
synced 2024-11-14 11:50:06 +00:00
lundump.py: only list protos if we have any
This commit is contained in:
parent
4d8c78f023
commit
61ce2d416b
@ -190,9 +190,10 @@ class Chunk:
|
|||||||
for i in range(len(self.instructions)):
|
for i in range(len(self.instructions)):
|
||||||
print("[%3d] %s" % (i, self.instructions[i].toString()))
|
print("[%3d] %s" % (i, self.instructions[i].toString()))
|
||||||
|
|
||||||
print("\n==== [[" + str(self.name) + "'s protos]] ====\n")
|
if len(self.protos) > 0:
|
||||||
for z in self.protos:
|
print("\n==== [[" + str(self.name) + "'s protos]] ====\n")
|
||||||
z.print()
|
for z in self.protos:
|
||||||
|
z.print()
|
||||||
|
|
||||||
instr_lookup_tbl = [
|
instr_lookup_tbl = [
|
||||||
Instruction(InstructionType.ABC, "MOVE"), Instruction(InstructionType.ABx, "LOADK"), Instruction(InstructionType.ABC, "LOADBOOL"),
|
Instruction(InstructionType.ABC, "MOVE"), Instruction(InstructionType.ABx, "LOADK"), Instruction(InstructionType.ABC, "LOADBOOL"),
|
||||||
|
Loading…
Reference in New Issue
Block a user