VERY experimental Nintendo Switch 2 emulator
C++
emulated_controller: Remove unused parameter in GetMappedDevices()
Lioncash7a349e99ee8f
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cppindex 09f870eb0f..67969e938a 100644--- a/src/core/hid/emulated_controller.cpp+++ b/src/core/hid/emulated_controller.cpp@@ -424,8 +424,7 @@ void EmulatedController::RestoreConfig() {ReloadFromSettings();}-std::vector<Common::ParamPackage> EmulatedController::GetMappedDevices(- EmulatedDeviceIndex device_index) const {+std::vector<Common::ParamPackage> EmulatedController::GetMappedDevices() const {std::vector<Common::ParamPackage> devices;for (const auto& param : button_params) {if (!param.Has("engine")) {diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.hindex 3f83108d38..fa7a342787 100644--- a/src/core/hid/emulated_controller.h+++ b/src/core/hid/emulated_controller.h@@ -244,7 +244,7 @@ public:void RestoreConfig();/// Returns a vector of mapped devices from the mapped button and stick parameters- std::vector<Common::ParamPackage> GetMappedDevices(EmulatedDeviceIndex device_index) const;+ std::vector<Common::ParamPackage> GetMappedDevices() const;// Returns the current mapped button deviceCommon::ParamPackage GetButtonParam(std::size_t index) const;diff --git a/src/yuzu/configuration/configure_input_player.cpp b/src/yuzu/configuration/configure_input_player.cppindex ed21f4b92f..b1575b0d3e 100644--- a/src/yuzu/configuration/configure_input_player.cpp+++ b/src/yuzu/configuration/configure_input_player.cpp@@ -855,8 +855,7 @@ void ConfigureInputPlayer::UpdateInputDeviceCombobox() {return;}- const auto devices =- emulated_controller->GetMappedDevices(Core::HID::EmulatedDeviceIndex::AllDevices);+ const auto devices = emulated_controller->GetMappedDevices();UpdateInputDevices();if (devices.empty()) {