mirror of
https://git.citron-emu.org/Citron/Citron.git
synced 2026-01-12 02:33:11 +00:00
Update the Atmosphere release version minor number from 0 to 8 to match newer firmware versions. Also add copyright notice for citron Emulator Project. This change maintains compatibility with newer system versions while preserving the existing version number format.
47 lines
1.4 KiB
C++
47 lines
1.4 KiB
C++
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
// SPDX-FileCopyrightText: Copyright 2025 citron Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "common/common_types.h"
|
|
|
|
// This file contains citron's HLE API version constants.
|
|
|
|
namespace HLE::ApiVersion {
|
|
|
|
// Horizon OS version constants.
|
|
|
|
constexpr u8 HOS_VERSION_MAJOR = 19;
|
|
constexpr u8 HOS_VERSION_MINOR = 0;
|
|
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[] = "835c78223df116284ef7e36e8441760edc81729c";
|
|
constexpr char DISPLAY_VERSION[] = "19.0.1";
|
|
constexpr char DISPLAY_TITLE[] = "NintendoSDK Firmware for NX 19.0.1-1.0";
|
|
|
|
// Atmosphere version constants.
|
|
|
|
constexpr u8 ATMOSPHERE_RELEASE_VERSION_MAJOR = 1;
|
|
constexpr u8 ATMOSPHERE_RELEASE_VERSION_MINOR = 8;
|
|
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
|