VERY experimental Nintendo Switch 2 emulator
C++
[hle] stub SetMouseLibraryVersion (#4222)
Maufeata90ba7f6ac27
diff --git a/src/core/hle/service/hid/hid_server.cpp b/src/core/hle/service/hid/hid_server.cppindex cd69829472..7359ff2caf 100644--- a/src/core/hle/service/hid/hid_server.cpp+++ b/src/core/hle/service/hid/hid_server.cpp@@ -237,7 +237,7 @@ IHidServer::IHidServer(Core::System& system_, std::shared_ptr<ResourceManager> r{3013, nullptr, "SetDebugPadGenericPadMap"}, //21.0.0+{3014, nullptr, "GetDebugPadKeyboardMap"}, //21.0.0+{3015, nullptr, "SetDebugPadKeyboardMap"}, //21.0.0+- {3150, nullptr, "SetMouseLibraryVersion"}, //21.0.0++ {3150, C<&IHidServer::SetMouseLibraryVersion>, "SetMouseLibraryVersion"}, //21.0.0+// What? -- {12010, nullptr, "SetButtonConfigLeft"},};// clang-format on@@ -1471,6 +1471,12 @@ Result IHidServer::SetTouchScreenResolution(u32 width, u32 height,R_SUCCEED();}+Result IHidServer::SetMouseLibraryVersion(ClientAppletResourceUserId aruid) {+ LOG_INFO(Service_HID, "(STUBBED) called, applet_resource_user_id={}", aruid.pid);++ R_SUCCEED();+}+std::shared_ptr<ResourceManager> IHidServer::GetResourceManager() {resource_manager->Initialize();return resource_manager;diff --git a/src/core/hle/service/hid/hid_server.h b/src/core/hle/service/hid/hid_server.hindex 2a2d722937..57a1a04b9c 100644--- a/src/core/hle/service/hid/hid_server.h+++ b/src/core/hle/service/hid/hid_server.h@@ -1,4 +1,4 @@-// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project// SPDX-License-Identifier: GPL-3.0-or-later// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project@@ -263,6 +263,7 @@ private:Result IsFirmwareUpdateNeededForNotification(Out<bool> out_is_firmware_update_needed,s32 unknown, ClientAppletResourceUserId aruid);Result SetTouchScreenResolution(u32 width, u32 height, ClientAppletResourceUserId aruid);+ Result SetMouseLibraryVersion(ClientAppletResourceUserId aruid);std::shared_ptr<ResourceManager> resource_manager;std::shared_ptr<HidFirmwareSettings> firmware_settings;