Server Meshing
Loading...
Searching...
No Matches
CommonUtilities::ProjectPaths Namespace Reference

Functions

fs::path GetExecutableDir ()
bool HasRootMarker (const fs::path &dir, const std::vector< fs::path > &markers)
std::optional< fs::path > FindProjectRootUpwards (fs::path startDir, const std::vector< fs::path > &markers)
std::optional< fs::path > ResolveProjectRoot (const std::vector< fs::path > &markers, const std::optional< fs::path > &cliOverride=std::nullopt, const char *="TGA_PROJECT_ROOT")
std::optional< fs::path > FindFolderBelow (const fs::path &root, const std::string &targetFolderName, bool followSymlinks=false)
std::wstring OpenFileDialog ()
std::wstring OpenFolderDialog ()

Variables

std::filesystem::path gProjectRoot
std::filesystem::path globalAssetsDir

Function Documentation

◆ FindFolderBelow()

std::optional< fs::path > CommonUtilities::ProjectPaths::FindFolderBelow ( const fs::path & root,
const std::string & targetFolderName,
bool followSymlinks = false )
inline

◆ FindProjectRootUpwards()

std::optional< fs::path > CommonUtilities::ProjectPaths::FindProjectRootUpwards ( fs::path startDir,
const std::vector< fs::path > & markers )
inline
Here is the call graph for this function:

◆ GetExecutableDir()

fs::path CommonUtilities::ProjectPaths::GetExecutableDir ( )
inline

◆ HasRootMarker()

bool CommonUtilities::ProjectPaths::HasRootMarker ( const fs::path & dir,
const std::vector< fs::path > & markers )
inline

◆ OpenFileDialog()

std::wstring CommonUtilities::ProjectPaths::OpenFileDialog ( )
inline

◆ OpenFolderDialog()

std::wstring CommonUtilities::ProjectPaths::OpenFolderDialog ( )
inline

◆ ResolveProjectRoot()

std::optional< fs::path > CommonUtilities::ProjectPaths::ResolveProjectRoot ( const std::vector< fs::path > & markers,
const std::optional< fs::path > & cliOverride = std::nullopt,
const char * = "TGA_PROJECT_ROOT" )
inline
Here is the call graph for this function:

Variable Documentation

◆ globalAssetsDir

std::filesystem::path CommonUtilities::ProjectPaths::globalAssetsDir
inline

◆ gProjectRoot

std::filesystem::path CommonUtilities::ProjectPaths::gProjectRoot
inline