Skip to content

Conversation

@ab9rf
Copy link
Member

@ab9rf ab9rf commented Mar 23, 2025

added Filesystem::as_string to provide namespace recanonicalization and change use in LuaApi to use this exported API

use as_string in orders

further revision of #5360

added `Filesystem::as_string` to provide namespace recanonicalization and change use in LuaApi to use this exported API

use `as_string` in `orders`
continue; // skip non-.json files
auto sname = name.stem();
out << "library/" << sname << std::endl;
out << Filesystem::as_string("library" / sname) << std::endl;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documented names of the library orders sets use the forward slash. Will this preserve that? Same for stockpiles, blueprint, quickfort, and other tools that come with libraries

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this only transforms names that are transformed from pathnames enumerated by listdir_recursive. input from other sources is completely unaffected

@myk002 myk002 merged commit 13e1c68 into DFHack:develop Mar 23, 2025
11 of 12 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