mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-30 20:10:08 +02:00
* GetSerialNumber in ISystemSettingsServer * Bionic qualifiers * Revert application pool size to 3285 MB for 4 GB DRAM * Fix PPTC recompilation if mod or patch is applied
33 lines
1.5 KiB
C#
33 lines
1.5 KiB
C#
using System.Reflection;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Ryujinx.Common
|
|
{
|
|
// DO NOT EDIT, filled by CI
|
|
public static class ReleaseInformation
|
|
{
|
|
private const string FlatHubChannelOwner = "flathub";
|
|
|
|
private const string BuildVersion = "%%RYUJINX_BUILD_VERSION%%";
|
|
private const string BuildGitHash = "%%RYUJINX_BUILD_GIT_HASH%%";
|
|
private const string ReleaseChannelName = "%%RYUJINX_TARGET_RELEASE_CHANNEL_NAME%%";
|
|
private const string ConfigFileName = "%%RYUJINX_CONFIG_FILE_NAME%%";
|
|
|
|
public const string ReleaseChannelOwner = "%%RYUJINX_TARGET_RELEASE_CHANNEL_OWNER%%";
|
|
public const string ReleaseChannelRepo = "%%RYUJINX_TARGET_RELEASE_CHANNEL_REPO%%";
|
|
|
|
public static string ConfigName => !ConfigFileName.StartsWith("%%") ? ConfigFileName : "Config.json";
|
|
|
|
public static bool IsValid =>
|
|
!BuildGitHash.StartsWith("%%") &&
|
|
!ReleaseChannelName.StartsWith("%%") &&
|
|
!ReleaseChannelOwner.StartsWith("%%") &&
|
|
!ReleaseChannelRepo.StartsWith("%%") &&
|
|
!ConfigFileName.StartsWith("%%");
|
|
|
|
public static bool IsFlatHubBuild => IsValid && ReleaseChannelOwner.Equals(FlatHubChannelOwner);
|
|
|
|
public static string Version => (IsValid || !RuntimeFeature.IsDynamicCodeCompiled) ? (PlatformInfo.IsBionic ? "Bionic_2.0.3" : BuildVersion) : Assembly.GetEntryAssembly()!.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion;
|
|
}
|
|
}
|