diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-09-08 20:00:02 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-09-10 07:10:47 +0200 |
commit | c9710f6c78427ba45d6c4fd4b9a36ba0d731b5af (patch) | |
tree | 351dd8c3f3f523fae3a6555fa61b73723e0d1b9a /src/core | |
parent | Merge pull request #6962 from vonchenplus/spirv_support_legacy_attribute (diff) | |
download | yuzu-c9710f6c78427ba45d6c4fd4b9a36ba0d731b5af.tar yuzu-c9710f6c78427ba45d6c4fd4b9a36ba0d731b5af.tar.gz yuzu-c9710f6c78427ba45d6c4fd4b9a36ba0d731b5af.tar.bz2 yuzu-c9710f6c78427ba45d6c4fd4b9a36ba0d731b5af.tar.lz yuzu-c9710f6c78427ba45d6c4fd4b9a36ba0d731b5af.tar.xz yuzu-c9710f6c78427ba45d6c4fd4b9a36ba0d731b5af.tar.zst yuzu-c9710f6c78427ba45d6c4fd4b9a36ba0d731b5af.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/api_version.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/core/hle/api_version.h b/src/core/hle/api_version.h index 43d5670a9..626e30753 100644 --- a/src/core/hle/api_version.h +++ b/src/core/hle/api_version.h @@ -28,13 +28,20 @@ constexpr char DISPLAY_TITLE[] = "NintendoSDK Firmware for NX 12.1.0-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 = 5; +constexpr u8 ATMOSPHERE_RELEASE_VERSION_MAJOR = 1; +constexpr u8 ATMOSPHERE_RELEASE_VERSION_MINOR = 0; +constexpr u8 ATMOSPHERE_RELEASE_VERSION_MICRO = 0; + +constexpr u32 AtmosphereTargetFirmwareWithRevision(u8 major, u8 minor, u8 micro, u8 rev) { + return u32{major} << 24 | u32{minor} << 16 | u32{micro} << 8 | u32{rev}; +} + +constexpr u32 AtmosphereTargetFirmware(u8 major, u8 minor, u8 micro) { + return AtmosphereTargetFirmwareWithRevision(major, minor, micro, 0); +} constexpr u32 GetTargetFirmware() { - return u32{HOS_VERSION_MAJOR} << 24 | u32{HOS_VERSION_MINOR} << 16 | - u32{HOS_VERSION_MICRO} << 8 | 0U; + return AtmosphereTargetFirmware(HOS_VERSION_MAJOR, HOS_VERSION_MINOR, HOS_VERSION_MICRO); } } // namespace HLE::ApiVersion |