-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlatformConstants.cs
More file actions
52 lines (49 loc) · 1.65 KB
/
PlatformConstants.cs
File metadata and controls
52 lines (49 loc) · 1.65 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
namespace MLVScan
{
/// <summary>
/// Version and build constants for MLVScan platform.
/// Uses conditional compilation for platform-specific values.
/// </summary>
public static class PlatformConstants
{
/// <summary>
/// Platform-specific version.
/// </summary>
public const string PlatformVersion = MLVScanBuildInfo.PlatformVersion;
#if MELONLOADER
/// <summary>
/// Platform name identifier.
/// </summary>
public const string PlatformName = "MLVScan.MelonLoader";
#elif BEPINEX6_IL2CPP
/// <summary>
/// Platform name identifier.
/// </summary>
public const string PlatformName = "MLVScan.BepInEx6.IL2CPP";
#elif BEPINEX6_MONO
/// <summary>
/// Platform name identifier.
/// </summary>
public const string PlatformName = "MLVScan.BepInEx6.Mono";
#elif BEPINEX
/// <summary>
/// Platform name identifier.
/// </summary>
public const string PlatformName = "MLVScan.BepInEx5";
#else
/// <summary>
/// Platform name identifier (fallback for IDE).
/// </summary>
public const string PlatformName = "MLVScan";
#endif
/// <summary>
/// Gets the full platform version string.
/// </summary>
public static string GetVersionString() => $"{PlatformName} v{PlatformVersion}";
/// <summary>
/// Gets the combined version info including core engine.
/// </summary>
public static string GetFullVersionInfo() =>
$"Engine: MLVScan.Core v{MLVScanVersions.CoreVersion} Platform: {GetVersionString()}";
}
}