Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TitleLocation.cs
Go to the documentation of this file.
1using System.IO;
3
5
6internal static class TitleLocation
7{
8 private static string _titleLocation;
9
10 public static string Path
11 {
12 get
13 {
14 if (_titleLocation == null)
15 {
16 string titleLocation = string.Empty;
18 if (assembly == null)
19 {
20 assembly = Assembly.GetCallingAssembly();
21 }
22 if (assembly != null)
23 {
24 titleLocation = System.IO.Path.GetDirectoryName(assembly.Location);
25 }
26 _titleLocation = titleLocation;
27 }
28 return _titleLocation;
29 }
30 }
31}
static ? string GetDirectoryName(string? path)
Definition Path.cs:121
static Assembly GetCallingAssembly()
Definition Assembly.cs:211
static ? Assembly GetEntryAssembly()
Definition Assembly.cs:486
virtual string Location
Definition Assembly.cs:92