bruvzg / gdsdecomp

Godot reverse engineering tools
MIT License
1.36k stars 137 forks source link

Rewrite v3 import metadata if source is absolute and inside project tree #85

Closed nikitalita closed 1 year ago

nikitalita commented 1 year ago

there are certain cases where godot 3.x will import resources and record the source as an absolute path rather than a relative path. In that case, if the source path is in the project tree, rewrite the import metadata.

This also refactors export path rewriting to occur during export_imports() only instead of in import_info and preserves the original source file location in the info