Adding FPackageName::GetContentPathForPackageRoot to be able to get the filesystem path (e.g. D:/Project/Engine/Content) of a given package root (e.g. /Engine/)

#rb Steve.Robb
#preflight 6360c64663608aee36d1a954

[CL 22888560 by robert manuszewski in ue5-main branch]
This commit is contained in:
robert manuszewski
2022-11-01 15:07:16 -04:00
parent e078982b85
commit 263c23a1dc
2 changed files with 23 additions and 0 deletions
@@ -316,6 +316,13 @@ public:
*/
static FName GetPackageMountPoint(const FString& InPackagePath, bool InWithoutSlashes = true);
/**
* Get the path associated with the given package root
* @param InPackageRoot Package root to return the path for, e.g. /Game/, /Engine/, /PluginName/
* @return Filesystem path associated with the provided package root
*/
static FString GetContentPathForPackageRoot(FStringView InPackageRoot);
/**
* Checks if the package exists on disk.
*