~ruther/guix-local

ref: 25e2662e7e65db2d2c3f9479a352e3507bcb46e9 guix-local/gnu/packages/patches/libretro-dolphin-emu-libusb-assert.patch -rw-r--r-- 933 bytes
25e2662e — Maxim Cournoyer gnu: dhtnet: Update to 0.0.1-6.6dd5a5e and enable natpmp support. a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
This patch is already merged in dolphin.

It'll appear in libretro-dolphin whenever it is rebased on top of current
dolphin source.

diff --git a/Source/Core/Core/LibusbUtils.cpp b/Source/Core/Core/LibusbUtils.cpp
index a4083e2d06..1ef9777e71 100644
--- a/Source/Core/Core/LibusbUtils.cpp
+++ b/Source/Core/Core/LibusbUtils.cpp
@@ -9,8 +9,8 @@
 #include <libusb.h>
 #endif
 
-#include "Common/Assert.h"
 #include "Common/Flag.h"
+#include "Common/Logging/Log.h"
 #include "Common/Thread.h"
 #include "Core/LibusbUtils.h"
 
@@ -23,9 +23,12 @@ public:
   Impl()
   {
     const int ret = libusb_init(&m_context);
-    ASSERT_MSG(IOS_USB, ret == LIBUSB_SUCCESS, "Failed to init libusb: %s", libusb_error_name(ret));
     if (ret != LIBUSB_SUCCESS)
+    {
+      ERROR_LOG(IOS_USB, "Failed to init libusb: %s", libusb_error_name(ret));
       return;
+    }
+
 
 #ifdef _WIN32
     libusb_set_option(m_context, LIBUSB_OPTION_USE_USBDK);