mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-27 06:24:16 +01:00
api_version: Update and add AtmosphereTargetFirmware
This commit is contained in:
parent
7e9163779d
commit
c9710f6c78
@ -28,13 +28,20 @@ constexpr char DISPLAY_TITLE[] = "NintendoSDK Firmware for NX 12.1.0-1.0";
|
|||||||
|
|
||||||
// Atmosphere version constants.
|
// Atmosphere version constants.
|
||||||
|
|
||||||
constexpr u8 ATMOSPHERE_RELEASE_VERSION_MAJOR = 0;
|
constexpr u8 ATMOSPHERE_RELEASE_VERSION_MAJOR = 1;
|
||||||
constexpr u8 ATMOSPHERE_RELEASE_VERSION_MINOR = 19;
|
constexpr u8 ATMOSPHERE_RELEASE_VERSION_MINOR = 0;
|
||||||
constexpr u8 ATMOSPHERE_RELEASE_VERSION_MICRO = 5;
|
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() {
|
constexpr u32 GetTargetFirmware() {
|
||||||
return u32{HOS_VERSION_MAJOR} << 24 | u32{HOS_VERSION_MINOR} << 16 |
|
return AtmosphereTargetFirmware(HOS_VERSION_MAJOR, HOS_VERSION_MINOR, HOS_VERSION_MICRO);
|
||||||
u32{HOS_VERSION_MICRO} << 8 | 0U;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace HLE::ApiVersion
|
} // namespace HLE::ApiVersion
|
||||||
|
Loading…
Reference in New Issue
Block a user