mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-12 06:39:26 +00:00
e7a96c7907
Preparing when something inevitably requires *at least* this reporting of version/etc. Authored-by: @Maufeat Signed-off-by: lizzie <lizzie@eden-emu.dev> - [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). - [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md) - [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- Co-authored-by: Maufeat <sahyno1996@gmail.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4390 Reviewed-by: Maufeat <sahyno1996@gmail.com> Reviewed-by: MaranBr <maranbr@eden-emu.dev>
52 lines
1.6 KiB
C++
52 lines
1.6 KiB
C++
// SPDX-FileCopyrightText: Copyright 2026 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 <string_view>
|
|
#include <fmt/format.h>
|
|
#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 = 23;
|
|
constexpr u8 HOS_VERSION_MINOR = 0;
|
|
constexpr u8 HOS_VERSION_MICRO = 0;
|
|
|
|
// NintendoSDK version constants.
|
|
constexpr u8 SDK_REVISION_MAJOR = 1;
|
|
constexpr u8 SDK_REVISION_MINOR = 0;
|
|
|
|
constexpr char PLATFORM_STRING[0x20] = "NX";
|
|
constexpr char VERSION_HASH[0x40] = "c2663accb7490a6ccfe9bc4dfd120ca215490525";
|
|
constexpr char DISPLAY_VERSION[0x18] = "23.0.0";
|
|
constexpr char DISPLAY_TITLE[0x80] = "NintendoSDK Firmware for NX 23.0.0-4.0";
|
|
// Leave empty when there's no digest (N/A)
|
|
constexpr char VERSION_DIGEST[0x40] = "";
|
|
|
|
// Atmosphere version constants.
|
|
constexpr u8 ATMOSPHERE_RELEASE_VERSION_MAJOR = 1;
|
|
constexpr u8 ATMOSPHERE_RELEASE_VERSION_MINOR = 12;
|
|
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 AtmosphereTargetFirmware(HOS_VERSION_MAJOR, HOS_VERSION_MINOR, HOS_VERSION_MICRO);
|
|
}
|
|
|
|
} // namespace HLE::ApiVersion
|