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

◆ GetBaseDirectoryCore()

static string System.AppContext.GetBaseDirectoryCore ( )
inlinestaticprivate

Definition at line 132 of file AppContext.cs.

133 {
134 string path = Assembly.GetEntryAssembly()?.Location;
135 string text = Path.GetDirectoryName(path);
136 if (text == null)
137 {
138 return string.Empty;
139 }
141 {
142 text += "\\";
143 }
144 return text;
145 }
static bool EndsInDirectorySeparator(ReadOnlySpan< char > path)
Definition Path.cs:848
static ? string GetDirectoryName(string? path)
Definition Path.cs:121
static ? Assembly GetEntryAssembly()
Definition Assembly.cs:486

References System.IO.Path.EndsInDirectorySeparator(), System.IO.Path.GetDirectoryName(), System.Reflection.Assembly.GetEntryAssembly(), and System.text.