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

◆ CollapseParentDirectory()

static int Microsoft.Xna.Framework.TitleContainer.CollapseParentDirectory ( ref string path,
int position,
int removeLength )
inlinestaticprivate

Definition at line 88 of file TitleContainer.cs.

89 {
90 int num = path.LastIndexOf('\\', position - 1) + 1;
91 path = path.Remove(num, position - num + removeLength);
92 return Math.Max(num - 1, 1);
93 }
static byte Max(byte val1, byte val2)
Definition Math.cs:738

References System.Math.Max().

Referenced by Microsoft.Xna.Framework.TitleContainer.GetCleanPath().