darknesswind / NutCracker

fork from DamianXVI's squirrel decompiler
22 stars 11 forks source link

Support all statements that use OP_JCMP #13

Closed Psimage closed 7 years ago

Psimage commented 7 years ago

OP_JCMP was added in 3.x as an optimization for single comparison expressions instead of using OP_CMP and conditional jump (OP_JZ is the only one in 3.x?). Currently those statements are not recognized correctly when OP_JCMP is used:

  1. If/IfElse image
  2. While/DoWhile image
darknesswind commented 7 years ago

image

It seens that do-while loop is not complete yet in the origin version of code