Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fs: Add utility functions for the new file dialog
These include an alternate mode of normalize_path() that enforces the platform's preferred path delimiter (i.e. backslash on Windows) on the output, and a function to detect whether a path refers to a root directory. Unfortunately, the last bit requires introducing a new link-time dependency on Windows, against a system library. It's guaranteed to be always there but it seems kind of a waste. The alternative would be to hand-parse the string but that seems even more of a waste. And no, Boost.Filesystem can't do this in a straightforward fashion right now.
- Loading branch information
Showing
7 changed files
with
102 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,7 @@ if(MSVC) | |
${sdl-lib} | ||
${sdlmain-lib} | ||
ws2_32.lib | ||
shlwapi.lib | ||
) | ||
else(MSVC) | ||
set(common-external-libs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters