Skip to content

Conversation

@ab9rf
Copy link
Member

@ab9rf ab9rf commented Mar 23, 2025

dfhack assumes that scripts are in a namespace in which directories are separated by slashes, and also that pathnames will be slash-separated

this enforces that when the transition is made from a std::filesystem::path to dfhack's internal script name space, the native preferred path separator (whatever it is) is replaced with slashes if it isn't already

followup to #5356

dfhack assumes that scripts are in a namespace in which directories are separated by slashes, and also that pathnames will be slash-separated

this enforces that when the transition is made from a `std::filesystem::path` to dfhack's internal script name space, backslashes are replaced with slashes on systems where the preferred separator is not already '/'
@myk002 myk002 merged commit ba84c1c into DFHack:develop Mar 23, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants