FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UnityLauncherPro/UnityLauncherPro/Data/UnityInstallation.cs at dev · unitycoder/UnityLauncherPro · GitHub
unitycoder
UnityLauncherPro
Repository navigation
Code
Issues
23
(23)
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
UnityLauncherPro
/
UnityLauncherPro
/
Data
/
UnityInstallation.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
32 lines (28 loc) · 1.2 KB
Breadcrumbs
UnityLauncherPro
/
UnityLauncherPro
/
Data
/
UnityInstallation.cs
Copy path
File metadata and controls
32 lines (28 loc) · 1.2 KB
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
using
System
;
using
System
.
Windows
.
Data
;
namespace
UnityLauncherPro
{
public
class
UnityInstallation
:
IValueConverter
{
public
string
Version
{
set
;
get
;
}
public
long
VersionCode
{
set
;
get
;
}
// version as number, cached for sorting
public
string
Path
{
set
;
get
;
}
// exe path
public
DateTime
?
Installed
{
set
;
get
;
}
public
string
PlatformsCombined
{
set
;
get
;
}
public
string
[
]
Platforms
{
set
;
get
;
}
public
int
ProjectCount
{
set
;
get
;
}
public
bool
IsPreferred
{
set
;
get
;
}
public
string
ReleaseType
{
set
;
get
;
}
// Alpha, Beta, LTS.. TODO could be enum
// https://stackoverflow.com/a/5551986/5452781
public
object
Convert
(
object
value
,
Type
targetType
,
object
parameter
,
System
.
Globalization
.
CultureInfo
culture
)
{
string
version
=
value
as
string
;
if
(
string
.
IsNullOrEmpty
(
version
)
)
return
null
;
return
MainWindow
.
unityInstalledVersions
.
ContainsKey
(
version
)
;
}
public
object
ConvertBack
(
object
value
,
Type
targetType
,
object
parameter
,
System
.
Globalization
.
CultureInfo
culture
)
{
throw
new
NotSupportedException
(
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL