Common/FileSystem: Add a helper to get root directory list

This commit is contained in:
Connor McLaughlin
2021-01-30 15:29:02 +10:00
parent 7a48bcc585
commit 5875b738dc
2 changed files with 31 additions and 0 deletions

View File

@ -154,6 +154,9 @@ std::string_view GetFileNameFromPath(const char* path);
/// Returns the file title (less the extension and path) from a filename.
std::string_view GetFileTitleFromPath(const char* path);
/// Returns a list of "root directories" (i.e. root/home directories on Linux, drive letters on Windows).
std::vector<std::string> GetRootDirectoryList();
// search for files
bool FindFiles(const char* Path, const char* Pattern, u32 Flags, FindResultsArray* pResults);