Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ BuildNameToAbsolutePathDictionary()

void ReLogic.Content.Sources.FileSystemContentSource.BuildNameToAbsolutePathDictionary ( )
inlineprivate

Definition at line 46 of file FileSystemContentSource.cs.

47 {
49 {
50 string[] files = Directory.GetFiles(_basePath, "*", SearchOption.AllDirectories);
51 for (int i = 0; i < files.Length; i++)
52 {
53 string fullPath = Path.GetFullPath(files[i]);
54 string path = fullPath.Substring(_basePath.Length);
55 path = AssetPathHelper.CleanPath(path);
57 }
58 }
59 }
readonly Dictionary< string, string > _nameToAbsolutePath
static string[] GetFiles(string path)
Definition Directory.cs:136
static bool Exists([NotNullWhen(true)] string? path)
Definition Directory.cs:43
static string GetFullPath(string path)
Definition Path.cs:881

References ReLogic.Content.Sources.FileSystemContentSource._basePath, ReLogic.Content.Sources.FileSystemContentSource._nameToAbsolutePath, ReLogic.Content.AssetPathHelper.CleanPath(), System.IO.Directory.Exists(), System.IO.Directory.GetFiles(), and System.IO.Path.GetFullPath().

Referenced by ReLogic.Content.Sources.FileSystemContentSource.FileSystemContentSource().