FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UnityLauncher/UnityLauncher/Program.cs at 1.28 · unitycoder/UnityLauncher · GitHub
This repository was archived by the owner on May 19, 2021. It is now read-only.
unitycoder
UnityLauncher
Repository navigation
Code
Issues
17
(17)
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
UnityLauncher
/
UnityLauncher
/
Program.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (31 loc) · 988 Bytes
Breadcrumbs
UnityLauncher
/
UnityLauncher
/
Program.cs
Copy path
File metadata and controls
35 lines (31 loc) · 988 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using
System
;
using
System
.
Collections
.
Generic
;
using
System
.
Threading
.
Tasks
;
using
System
.
Windows
.
Forms
;
namespace
UnityLauncher
{
static
class
Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[
STAThread
]
static
void
Main
(
)
{
/*
// TODO allow only single instance https://stackoverflow.com/a/6486341/5452781
bool result = false;
var mutex = new System.Threading.Mutex(true, "UniqueAppId", out result);
if (result == false)
{
// another instance already running, decide what to do
MessageBox.Show("Another instance is already running.");
return;
}*/
Application
.
EnableVisualStyles
(
)
;
Application
.
SetCompatibleTextRenderingDefault
(
false
)
;
Application
.
Run
(
new
Form1
(
)
)
;
//GC.KeepAlive(mutex);
}
}
}
Back
|
FazBrowse Home
|
New Git URL