VERY experimental Nintendo Switch 2 emulator
C++
fix uninit values in applet and mouse (#114)
Esther1024ea7b9519c7a5
diff --git a/src/hid_core/resources/applet_resource.h b/src/hid_core/resources/applet_resource.hindex 4a5416fb29..69ea46b957 100644--- a/src/hid_core/resources/applet_resource.h+++ b/src/hid_core/resources/applet_resource.h@@ -119,7 +119,7 @@ private:std::array<AruidData, AruidIndexMax> data{};std::array<SharedMemoryHolder, AruidIndexMax> shared_memory_holder{};s32 ref_counter{};- u64 active_vibration_aruid;+ u64 active_vibration_aruid = 0;Core::System& system;};diff --git a/src/input_common/drivers/mouse.h b/src/input_common/drivers/mouse.hindex 2b93a40b9c..124b6f3bd5 100644--- a/src/input_common/drivers/mouse.h+++ b/src/input_common/drivers/mouse.h@@ -108,7 +108,7 @@ private:Common::Vec2<float> last_mouse_change;Common::Vec3<float> last_motion_change;Common::Vec2<int> wheel_position;- bool button_pressed;+ bool button_pressed = false;std::jthread update_thread;};