xboxdrv: fix ftbfs

This commit is contained in:
Đoàn Trần Công Danh 2025-08-10 10:08:55 +07:00
parent 325ba67b9c
commit 2d28d60fe1
2 changed files with 26 additions and 2 deletions

View file

@ -0,0 +1,22 @@
--- a/src/controller.cpp
+++ b/src/controller.cpp
@@ -98,7 +98,7 @@ Controller::set_active(bool v)
{
if (m_is_active != v)
{
- log_debug("activation status: " << v << " " << m_activation_cb);
+ log_debug("activation status: " << v << " m_activation_cb");
m_is_active = v;
if (m_activation_cb)
{
--- a/src/controller_slot.cpp
+++ b/src/controller_slot.cpp
@@ -69,7 +69,7 @@ ControllerSlot::disconnect()
bool
ControllerSlot::is_connected() const
{
- return m_thread;
+ return m_thread != nullptr;
}
/* EOF */

View file

@ -1,10 +1,12 @@
# Template file for 'xboxdrv'
pkgname=xboxdrv
version=0.8.8
revision=3
revision=4
build_style=scons
make_build_args=BUILD=custom
hostmakedepends="pkg-config glib-devel dbus-glib-devel"
makedepends="boost-devel libX11-devel eudev-libudev-devel libusb-devel dbus-glib-devel glib-devel"
makedepends="boost-devel-minimal libX11-devel eudev-libudev-devel
libusb-devel dbus-glib-devel glib-devel"
short_desc="Xbox Gamepad Userspace Driver"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-3.0-or-later"