mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-20 13:38:17 +00:00

This provides, as far as I can tell, all the filechooser functionality that is actually in use in Open File mode except for the "type-ahead" option that is used to set filename extension hints. There's some newly-introduced border cases courtesy of Boost.Filesystem that I really feel we shouldn't worry about for now: * // is handled weirdly thanks to BFS honoring the POSIX provision for implementation-defined behavior regarding it. * UNCs on Windows are not supported. Just like in mostly everywhere else in Wesnoth. Same applies to \\.\, \\?\ and \??\. * Non-directory path components on Windows are not handled very gracefully (particularly obvious with volumes mounted as NTFS junction points, or symbolic links for the Documents folder on Wine) due to quirks in BFS's path::canonical() method and how it relies on dereferencing individual path components to resolve dot entries. Haven't tested all callers yet, they are still using the original filechooser entry points for now. I need to remove those and make everyone use gui2::tfile_dialog directly before this can be merged to master.