Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TitleLocation.cs
Go to the documentation of this file.
1
using
System.IO
;
2
using
System.Reflection
;
3
4
namespace
Microsoft.Xna.Framework
;
5
6
internal
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;
17
Assembly
assembly =
Assembly
.
GetEntryAssembly
();
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
}
Microsoft.Xna.Framework.TitleLocation._titleLocation
static string _titleLocation
Definition
TitleLocation.cs:8
Microsoft.Xna.Framework.TitleLocation
Definition
TitleLocation.cs:7
System.IO.Path.GetDirectoryName
static ? string GetDirectoryName(string? path)
Definition
Path.cs:121
System.IO.Path
Definition
Path.cs:8
System.Reflection.Assembly.GetCallingAssembly
static Assembly GetCallingAssembly()
Definition
Assembly.cs:211
System.Reflection.Assembly.GetEntryAssembly
static ? Assembly GetEntryAssembly()
Definition
Assembly.cs:486
System.Reflection.Assembly.Location
virtual string Location
Definition
Assembly.cs:92
System.Reflection.Assembly
Definition
Assembly.cs:16
Microsoft.Xna.Framework
Definition
AlphaTestEffect.cs:1
System.IO
Definition
ConsoleStream.cs:3
System.Reflection
Definition
ICustomTypeProvider.cs:1
System
Definition
BlockingCollection.cs:8
source
Microsoft.Xna.Framework
TitleLocation.cs
Generated by
1.10.0