api_version.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright 2021 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "common/common_types.h"
  6. // This file contains yuzu's HLE API version constants.
  7. namespace HLE::ApiVersion {
  8. // Horizon OS version constants.
  9. constexpr u8 HOS_VERSION_MAJOR = 11;
  10. constexpr u8 HOS_VERSION_MINOR = 0;
  11. constexpr u8 HOS_VERSION_MICRO = 1;
  12. // NintendoSDK version constants.
  13. constexpr u8 SDK_REVISION_MAJOR = 1;
  14. constexpr u8 SDK_REVISION_MINOR = 0;
  15. constexpr char PLATFORM_STRING[] = "NX";
  16. constexpr char VERSION_HASH[] = "69103fcb2004dace877094c2f8c29e6113be5dbf";
  17. constexpr char DISPLAY_VERSION[] = "11.0.1";
  18. constexpr char DISPLAY_TITLE[] = "NintendoSDK Firmware for NX 11.0.1-1.0";
  19. // Atmosphere version constants.
  20. constexpr u8 ATMOSPHERE_RELEASE_VERSION_MAJOR = 0;
  21. constexpr u8 ATMOSPHERE_RELEASE_VERSION_MINOR = 19;
  22. constexpr u8 ATMOSPHERE_RELEASE_VERSION_MICRO = 4;
  23. constexpr u32 GetTargetFirmware() {
  24. return u32{HOS_VERSION_MAJOR} << 24 | u32{HOS_VERSION_MINOR} << 16 |
  25. u32{HOS_VERSION_MICRO} << 8 | 0U;
  26. }
  27. } // namespace HLE::ApiVersion