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

◆ MapBelongsToPath()

bool Terraria.IO.PlayerFileData.MapBelongsToPath ( string mapPath,
string filePath )
inlineprivate

Definition at line 125 of file PlayerFileData.cs.

126 {
127 if (!filePath.EndsWith(".map", StringComparison.CurrentCultureIgnoreCase))
128 {
129 return false;
130 }
131 string value = mapPath.Replace('\\', '/');
132 return filePath.StartsWith(value, StringComparison.CurrentCultureIgnoreCase);
133 }

References System.value.

Referenced by Terraria.IO.PlayerFileData.MoveToLocal().