Commit 8b8b70b
committed
deal with directory separators cleanly
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 '/'1 parent a801e96 commit 8b8b70b
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3207 | 3207 | | |
3208 | 3208 | | |
3209 | 3209 | | |
3210 | | - | |
| 3210 | + | |
| 3211 | + | |
| 3212 | + | |
| 3213 | + | |
| 3214 | + | |
| 3215 | + | |
3211 | 3216 | | |
3212 | 3217 | | |
3213 | 3218 | | |
| |||
0 commit comments