Menu

#384 Use tilde (~) for player-unique map paths

None
closed
None
5
2021-02-27
2020-12-13
Kevin Zheng
No

Paths to player-unique maps are represented internally as an absolute
filesystem path to the save map file. Since this path is relative to
LOCALDIR, moving a player file from one server to another could result
in invalid paths. This change replaces full filesystem paths with paths
that begin with (~).

Both the map loading and saving code now internally replace (~) with
LOCALDIR/PLAYERDIR. The map loading code also rewrites the old paths on
load to maintain a consistent path convention.

As a result, we no longer need to explicitly hide local filesystem paths
in the 'who' and 'mapinfo' commands; this change reverts r21263.

1 Attachments

Discussion

  • Nicolas Weeger

    Nicolas Weeger - 2020-12-14
    • status: feedback-needed --> patched
    • Group: -->
     
  • Nicolas Weeger

    Nicolas Weeger - 2020-12-14

    Applied as r21609, thanks :)

     
  • Nicolas Weeger

    Nicolas Weeger - 2021-02-27
    • status: patched --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.