2022-04-23 08:59:50 +00:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2021-06-15 07:35:43 +00:00
|
|
|
|
2021-06-24 11:20:57 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-06-15 07:35:43 +00:00
|
|
|
#include "common/common_types.h"
|
|
|
|
|
|
|
|
// This file contains yuzu's HLE API version constants.
|
|
|
|
|
|
|
|
namespace HLE::ApiVersion {
|
|
|
|
|
|
|
|
// Horizon OS version constants.
|
|
|
|
|
2021-07-31 18:39:49 +00:00
|
|
|
constexpr u8 HOS_VERSION_MAJOR = 12;
|
|
|
|
constexpr u8 HOS_VERSION_MINOR = 1;
|
|
|
|
constexpr u8 HOS_VERSION_MICRO = 0;
|
2021-06-15 07:35:43 +00:00
|
|
|
|
|
|
|
// NintendoSDK version constants.
|
|
|
|
|
|
|
|
constexpr u8 SDK_REVISION_MAJOR = 1;
|
|
|
|
constexpr u8 SDK_REVISION_MINOR = 0;
|
|
|
|
|
|
|
|
constexpr char PLATFORM_STRING[] = "NX";
|
2021-07-31 18:39:49 +00:00
|
|
|
constexpr char VERSION_HASH[] = "76b10c2dab7d3aa73fc162f8dff1655e6a21caf4";
|
|
|
|
constexpr char DISPLAY_VERSION[] = "12.1.0";
|
|
|
|
constexpr char DISPLAY_TITLE[] = "NintendoSDK Firmware for NX 12.1.0-1.0";
|
2021-06-15 07:35:43 +00:00
|
|
|
|
|
|
|
// Atmosphere version constants.
|
|
|
|
|
2021-09-08 18:00:02 +00:00
|
|
|
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);
|
|
|
|
}
|
2021-06-15 07:35:43 +00:00
|
|
|
|
|
|
|
constexpr u32 GetTargetFirmware() {
|
2021-09-08 18:00:02 +00:00
|
|
|
return AtmosphereTargetFirmware(HOS_VERSION_MAJOR, HOS_VERSION_MINOR, HOS_VERSION_MICRO);
|
2021-06-15 07:35:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace HLE::ApiVersion
|