Stage icon indicating copy to clipboard operation
Stage copied to clipboard

Don't overwrite the loaded filename when opening includes

Open mbuijs opened this issue 4 years ago • 0 comments

The filename of the worldfile is used to find include files, bitmaps (and maybe other things?). When handling includes that are found through the STAGEPATH, the filename of the worldfile is overwritten. Later on when for example loading bitmaps, the STAGEPATH is not evaluated anymore, instead only the filename is used. In my case bitmaps are located next to the original world file, not near files somewhere in the STAGEPATH.

Another scenario is the save functionality, which will actually attempt to save the world file to the path of the last include instead of the original world file.

mbuijs avatar Jun 18 '20 19:06 mbuijs