From b65707efd97a3a581efca7ae87c6bf8772f4f92a Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sat, 1 Aug 2020 15:06:49 -0700 Subject: [PATCH] ams: add support for 10.1.1 --- fusee/fusee-secondary/src/nxboot.c | 1 + .../libvapours/include/vapours/ams/ams_target_firmware.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/fusee/fusee-secondary/src/nxboot.c b/fusee/fusee-secondary/src/nxboot.c index 8a3e4efa6..7a8519208 100644 --- a/fusee/fusee-secondary/src/nxboot.c +++ b/fusee/fusee-secondary/src/nxboot.c @@ -235,6 +235,7 @@ static uint32_t nxboot_get_specific_target_firmware(uint32_t target_firmware){ #define CHECK_NCA(NCA_ID, VERSION) do { if (is_nca_present(NCA_ID)) { return ATMOSPHERE_TARGET_FIRMWARE_##VERSION; } } while(0) if (target_firmware >= ATMOSPHERE_TARGET_FIRMWARE_10_0_0) { + CHECK_NCA("5077973537f6735b564dd7475b779f87", 10_1_1); /* Exclusive to China. */ CHECK_NCA("fd1faed0ca750700d254c0915b93d506", 10_1_0); CHECK_NCA("34728c771299443420820d8ae490ea41", 10_0_4); CHECK_NCA("5b1df84f88c3334335bbb45d8522cbb4", 10_0_3); diff --git a/libraries/libvapours/include/vapours/ams/ams_target_firmware.h b/libraries/libvapours/include/vapours/ams/ams_target_firmware.h index d20febba7..622e7115a 100644 --- a/libraries/libvapours/include/vapours/ams/ams_target_firmware.h +++ b/libraries/libvapours/include/vapours/ams/ams_target_firmware.h @@ -54,8 +54,9 @@ #define ATMOSPHERE_TARGET_FIRMWARE_10_0_3 ATMOSPHERE_TARGET_FIRMWARE(10, 0, 3) #define ATMOSPHERE_TARGET_FIRMWARE_10_0_4 ATMOSPHERE_TARGET_FIRMWARE(10, 0, 4) #define ATMOSPHERE_TARGET_FIRMWARE_10_1_0 ATMOSPHERE_TARGET_FIRMWARE(10, 1, 0) +#define ATMOSPHERE_TARGET_FIRMWARE_10_1_0 ATMOSPHERE_TARGET_FIRMWARE(10, 1, 1) -#define ATMOSPHERE_TARGET_FIRMWARE_CURRENT ATMOSPHERE_TARGET_FIRMWARE_10_1_0 +#define ATMOSPHERE_TARGET_FIRMWARE_CURRENT ATMOSPHERE_TARGET_FIRMWARE_10_1_1 #define ATMOSPHERE_TARGET_FIRMWARE_MIN ATMOSPHERE_TARGET_FIRMWARE(0, 0, 0) #define ATMOSPHERE_TARGET_FIRMWARE_MAX ATMOSPHERE_TARGET_FIRMWARE_CURRENT @@ -102,6 +103,7 @@ namespace ams { TargetFirmware_10_0_3 = ATMOSPHERE_TARGET_FIRMWARE_10_0_3, TargetFirmware_10_0_4 = ATMOSPHERE_TARGET_FIRMWARE_10_0_4, TargetFirmware_10_1_0 = ATMOSPHERE_TARGET_FIRMWARE_10_1_0, + TargetFirmware_10_1_0 = ATMOSPHERE_TARGET_FIRMWARE_10_1_1, TargetFirmware_Current = ATMOSPHERE_TARGET_FIRMWARE_CURRENT,