From 78b11c013434af5b5f85d008e5e40b251ca0908e Mon Sep 17 00:00:00 2001 From: MaranBr Date: Mon, 13 Oct 2025 16:45:09 -0400 Subject: [PATCH] Fix assert about controller applet version 9 --- src/core/hle/service/am/frontend/applet_controller.cpp | 1 + src/core/hle/service/am/frontend/applet_controller.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/core/hle/service/am/frontend/applet_controller.cpp b/src/core/hle/service/am/frontend/applet_controller.cpp index d5699d7848..cfa7cff707 100644 --- a/src/core/hle/service/am/frontend/applet_controller.cpp +++ b/src/core/hle/service/am/frontend/applet_controller.cpp @@ -134,6 +134,7 @@ void Controller::Initialize() { break; case ControllerAppletVersion::Version7: case ControllerAppletVersion::Version8: + case ControllerAppletVersion::Version9: ASSERT(user_arg.size() == sizeof(ControllerSupportArgNew)); std::memcpy(&controller_user_arg_new, user_arg.data(), user_arg.size()); break; diff --git a/src/core/hle/service/am/frontend/applet_controller.h b/src/core/hle/service/am/frontend/applet_controller.h index 2f219429ca..8fd40d4209 100644 --- a/src/core/hle/service/am/frontend/applet_controller.h +++ b/src/core/hle/service/am/frontend/applet_controller.h @@ -30,6 +30,7 @@ enum class ControllerAppletVersion : u32_le { Version5 = 0x5, // 6.0.0 - 7.0.1 Version7 = 0x7, // 8.0.0 - 10.2.0 Version8 = 0x8, // 11.0.0+ + Version8 = 0x9, }; enum class ControllerSupportMode : u8 {