Garux / netradiant-custom

The open-source, cross-platform level editor for id Tech based games.
https://garux.github.io/NRC/
Other
300 stars 52 forks source link

Do not move symlinks when saving a map, overwrite target instead #108

Closed wdoekes closed 1 year ago

wdoekes commented 2 years ago

If the user is editing a symlink to a target instead of a real file, chances are high they want the symlink to stay in place.

Precondition:

some.map -> /path/to/elsewhere.map

After save (before):

some.bak -> /path/to/elsewhere.map some.map (real file)

After save (after):

some.map -> /path/to/elsewhere.map

Closes #107.