In my game, I build a list of levels from files inside the res://levels/ directory.
It works fine when testing in the editor, but once exported my code returns zero files :O
It is caused by my code filtering out files that are not .tscn. In exported games, they are converted to .scn, so I get no files.
Also, in some places I need to append .tscn to parameters, but in the exported version it changes to .scn, then doesn't works...
how do I know that I'm in an exported version?