mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 03:35:46 +00:00
Currently Android only, will need to be added to desktop. Android incorrectly records firmware as 19.0.1 if on a higher version... TODO: - [x] desktop - [x] fix android Signed-off-by: crueter <swurl@swurl.xyz> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/222 Co-authored-by: crueter <swurl@swurl.xyz> Co-committed-by: crueter <swurl@swurl.xyz>
49 lines
1.5 KiB
C++
49 lines
1.5 KiB
C++
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#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 = 20;
|
|
constexpr u8 HOS_VERSION_MINOR = 1;
|
|
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[] = "9ffad64d79dd150490201461bdf66c8db963f57d";
|
|
constexpr char DISPLAY_VERSION[] = "20.1.1";
|
|
constexpr char DISPLAY_TITLE[] = "NintendoSDK Firmware for NX 20.1.1-1.0";
|
|
|
|
// Atmosphere version constants.
|
|
|
|
constexpr u8 ATMOSPHERE_RELEASE_VERSION_MAJOR = 1;
|
|
constexpr u8 ATMOSPHERE_RELEASE_VERSION_MINOR = 9;
|
|
constexpr u8 ATMOSPHERE_RELEASE_VERSION_MICRO = 1;
|
|
|
|
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 AtmosphereTargetFirmware(HOS_VERSION_MAJOR, HOS_VERSION_MINOR, HOS_VERSION_MICRO);
|
|
}
|
|
|
|
} // namespace HLE::ApiVersion
|