77 std::vector<path_info>
game_paths(
const std::set<GAME_PATH_TYPES>& paths);
90 std::vector<path_info>
system_paths(
const std::set<SYSTEM_PATH_TYPES>& paths);
std::string label
What to show in the filter's drop-down list.
std::vector< bookmark_info > user_bookmarks()
unsigned add_user_bookmark(const std::string &label, const std::string &path)
@ GAME_EDITOR_MAP_DIR
Editor map dir.
@ GAME_USER_DATA_DIR
User data dir.
@ GAME_CORE_DATA_DIR
Game data dir.
@ GAME_BIN_DIR
Game executable dir.
void remove_user_bookmark(unsigned index)
std::vector< path_info > system_paths(const std::set< SYSTEM_PATH_TYPES > &paths)
Returns a list of system-defined paths.
@ SYSTEM_USER_PROFILE
Path to the user's profile dir (e.g.
@ SYSTEM_ALL_DRIVES
Paths for each storage media found (Windows), /media and/or /mnt (X11, if non-empty).
@ SYSTEM_ROOTFS
Path to the root of the filesystem hierarchy (ignored on Windows).
std::string user_profile_dir()
Returns the path to the user profile dir (e.g.
std::vector< path_info > game_paths(const std::set< GAME_PATH_TYPES > &paths)
Returns a list of game-related paths.
std::ostream & operator<<(std::ostream &os, const path_info &pinf)
std::size_t index(std::string_view str, const std::size_t index)
Codepoint index corresponding to the nth character in a UTF-8 string.
std::string path
Real path.
std::string label
User defined label.
std::string path
Real path.
std::string display_name() const
Formats this path for UI display.
std::string label
System-defined label, if the path is a drive or mount point.
t_string name
Path name or drive letter/mount point path; may be a translatable string if it's a game resources pat...