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

◆ SetPath()

void System.Data.XmlTreeGen.SetPath ( XmlWriter xw)
inlinepackage

Definition at line 921 of file XmlTreeGen.cs.

922 {
923 FileStream fileStream = null;
924 fileStream = ((xw is DataTextWriter dataTextWriter) ? (dataTextWriter.BaseStream as FileStream) : null);
925 if (fileStream == null)
926 {
928 {
929 return;
930 }
932 if (fileStream == null)
933 {
934 return;
935 }
936 }
940 if (!string.IsNullOrEmpty(_filePath))
941 {
942 _filePath += "\\";
943 }
944 }
static ? string GetFileNameWithoutExtension(string? path)
Definition Path.cs:229
static ? string GetExtension(string? path)
Definition Path.cs:168
static ? string GetDirectoryName(string? path)
Definition Path.cs:121

References System.Data.XmlTreeGen._fileExt, System.Data.XmlTreeGen._fileName, System.Data.XmlTreeGen._filePath, System.Xml.Dictionary, System.IO.Path.GetDirectoryName(), System.IO.Path.GetExtension(), and System.IO.Path.GetFileNameWithoutExtension().

Referenced by System.Data.XmlTreeGen.Save(), and System.Data.XmlTreeGen.Save().