sannybuilder / dev

Sanny Builder Bug Tracker and Roadmap development
https://sannybuilder.com
49 stars 0 forks source link

Normalize VAR section before outputting ALLOC in decompiled file #272

Closed x87 closed 3 months ago

x87 commented 1 year ago

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 commented 3 months ago

released in 4.0.0