diff options
Diffstat (limited to 'src/Ryujinx.Common/ReleaseInformation.cs')
-rw-r--r-- | src/Ryujinx.Common/ReleaseInformation.cs | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/Ryujinx.Common/ReleaseInformation.cs b/src/Ryujinx.Common/ReleaseInformation.cs index 601c05b1..b561ef03 100644 --- a/src/Ryujinx.Common/ReleaseInformation.cs +++ b/src/Ryujinx.Common/ReleaseInformation.cs @@ -9,11 +9,11 @@ namespace Ryujinx.Common { private const string FlatHubChannelOwner = "flathub"; - public static string BuildVersion = "%%RYUJINX_BUILD_VERSION%%"; - public static string BuildGitHash = "%%RYUJINX_BUILD_GIT_HASH%%"; - public static string ReleaseChannelName = "%%RYUJINX_TARGET_RELEASE_CHANNEL_NAME%%"; - public static string ReleaseChannelOwner = "%%RYUJINX_TARGET_RELEASE_CHANNEL_OWNER%%"; - public static string ReleaseChannelRepo = "%%RYUJINX_TARGET_RELEASE_CHANNEL_REPO%%"; + public const string BuildVersion = "%%RYUJINX_BUILD_VERSION%%"; + public const string BuildGitHash = "%%RYUJINX_BUILD_GIT_HASH%%"; + public const string ReleaseChannelName = "%%RYUJINX_TARGET_RELEASE_CHANNEL_NAME%%"; + public const string ReleaseChannelOwner = "%%RYUJINX_TARGET_RELEASE_CHANNEL_OWNER%%"; + public const string ReleaseChannelRepo = "%%RYUJINX_TARGET_RELEASE_CHANNEL_REPO%%"; public static bool IsValid() { @@ -34,10 +34,8 @@ namespace Ryujinx.Common { return BuildVersion; } - else - { - return Assembly.GetEntryAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion; - } + + return Assembly.GetEntryAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion; } #if FORCE_EXTERNAL_BASE_DIR @@ -57,4 +55,4 @@ namespace Ryujinx.Common } #endif } -}
\ No newline at end of file +} |