Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
ConsoleCtrlCheck()
static
bool
Terraria.WindowsLaunch.ConsoleCtrlCheck
(
CtrlTypes
ctrlType
)
inline
static
private
Definition at line
24
of file
WindowsLaunch.cs
.
25
{
26
bool
flag =
false
;
27
switch
(ctrlType)
28
{
29
case
CtrlTypes
.CTRL_C_EVENT:
30
flag =
true
;
31
break
;
32
case
CtrlTypes
.CTRL_BREAK_EVENT:
33
flag =
true
;
34
break
;
35
case
CtrlTypes
.CTRL_CLOSE_EVENT:
36
flag =
true
;
37
break
;
38
case
CtrlTypes
.CTRL_LOGOFF_EVENT:
39
case
CtrlTypes
.CTRL_SHUTDOWN_EVENT:
40
flag =
true
;
41
break
;
42
}
43
if
(flag)
44
{
45
SocialAPI
.
Shutdown
();
46
}
47
return
true
;
48
}
Terraria.Social.SocialAPI.Shutdown
static void Shutdown()
Definition
SocialAPI.cs:60
Terraria.Social.SocialAPI
Definition
SocialAPI.cs:11
Terraria.WindowsLaunch.CtrlTypes
CtrlTypes
Definition
WindowsLaunch.cs:14
References
Terraria.Social.SocialAPI.Shutdown()
.
Terraria
WindowsLaunch
Generated by
1.10.0