diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-06-15 09:35:43 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-06-16 07:46:45 +0200 |
commit | e4318a191457f5e46eca20060c8ebcab3e6758eb (patch) | |
tree | ccc04b267629c6767de9295ac76361c281ddea3e /src/core/hle/api_version.h | |
parent | spl: Add the general SPL interface (diff) | |
download | yuzu-e4318a191457f5e46eca20060c8ebcab3e6758eb.tar yuzu-e4318a191457f5e46eca20060c8ebcab3e6758eb.tar.gz yuzu-e4318a191457f5e46eca20060c8ebcab3e6758eb.tar.bz2 yuzu-e4318a191457f5e46eca20060c8ebcab3e6758eb.tar.lz yuzu-e4318a191457f5e46eca20060c8ebcab3e6758eb.tar.xz yuzu-e4318a191457f5e46eca20060c8ebcab3e6758eb.tar.zst yuzu-e4318a191457f5e46eca20060c8ebcab3e6758eb.zip |
Diffstat (limited to 'src/core/hle/api_version.h')
-rw-r--r-- | src/core/hle/api_version.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/core/hle/api_version.h b/src/core/hle/api_version.h new file mode 100644 index 000000000..811732179 --- /dev/null +++ b/src/core/hle/api_version.h @@ -0,0 +1,38 @@ +// Copyright 2021 yuzu Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "common/common_types.h" + +// This file contains yuzu's HLE API version constants. + +namespace HLE::ApiVersion { + +// Horizon OS version constants. + +constexpr u8 HOS_VERSION_MAJOR = 11; +constexpr u8 HOS_VERSION_MINOR = 0; +constexpr u8 HOS_VERSION_MICRO = 1; + +// NintendoSDK version constants. + +constexpr u8 SDK_REVISION_MAJOR = 1; +constexpr u8 SDK_REVISION_MINOR = 0; + +constexpr char PLATFORM_STRING[] = "NX"; +constexpr char VERSION_HASH[] = "69103fcb2004dace877094c2f8c29e6113be5dbf"; +constexpr char DISPLAY_VERSION[] = "11.0.1"; +constexpr char DISPLAY_TITLE[] = "NintendoSDK Firmware for NX 11.0.1-1.0"; + +// Atmosphere version constants. + +constexpr u8 ATMOSPHERE_RELEASE_VERSION_MAJOR = 0; +constexpr u8 ATMOSPHERE_RELEASE_VERSION_MINOR = 19; +constexpr u8 ATMOSPHERE_RELEASE_VERSION_MICRO = 4; + +constexpr u32 GetTargetFirmware() { + return u32{HOS_VERSION_MAJOR} << 24 | u32{HOS_VERSION_MINOR} << 16 | + u32{HOS_VERSION_MICRO} << 8 | 0U; +} + +} // namespace HLE::ApiVersion |