bruvzg / gdsdecomp

Godot reverse engineering tools
MIT License
1.54k stars 146 forks source link

Update 4.0 API to current master, fix string constant newlines #12

Closed nikitalita closed 3 years ago

nikitalita commented 3 years ago

This updates the module to use the latest 4.0 api since many functions and classes have changed.

This also fixes the issue with newlines in string constants; Newlines are not allowed in the middle of statements in scripts in godot versions < 4, which means that these scripts will have compile errors. We now replace newlines with an escaped '\n'.

nikitalita commented 3 years ago

I just noticed that you pushed changes that implemented the first commit in this; are you automatically generating those bytecode classes? If so, how?

either way, the first half is redundant, so I'll close and make a new one