dev icon indicating copy to clipboard operation
dev copied to clipboard

Normalize VAR section before outputting ALLOC in decompiled file

Open x87 opened this issue 10 months ago • 0 comments

Some old compiled script may have suffered from #223 and have negative indexes stored in SB Footer's VAR section.

After #251 this results in lines like this:

Alloc($var, -1000)

Also some variable names could be malformed and contain invalid characters (e.g. // ). Need to investigate whether it is still possible for CustomVariables.ini to have such names.

Alloc($var//[0], -1000)

x87 avatar Oct 04 '23 23:10 x87