ferib / LuaToolkit

Lua Encode/Decoder/Disassembler/Decompiler in C#
https://ferib.dev/blog.php?l=post/Lua_Devirtualization_Part_2_Decompiling_Lua
MIT License
86 stars 35 forks source link

fix issue #7 - VARARG illegal #9

Closed ferib closed 3 years ago

ferib commented 3 years ago

VARARG line now sets correct amount of variables:

for (int i = Instr.A; i < Instr.A+Instr.B-1; i++) 

LuaScriptFunction now has HasVarargs to correctly print prototype.

ferib commented 3 years ago

Seems to handle everything just fine!