From 8331242f42c0243201b5c2911245e7101984f1bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Thu, 21 Aug 2025 10:54:34 +0800 Subject: [PATCH] GPU (BSD): fallbacks to `pciids/pci.ids` --- src/detection/gpu/gpu_pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/detection/gpu/gpu_pci.c b/src/detection/gpu/gpu_pci.c index ea7c992f0..cce1deb45 100644 --- a/src/detection/gpu/gpu_pci.c +++ b/src/detection/gpu/gpu_pci.c @@ -47,6 +47,8 @@ static const FFstrbuf* loadPciIds() } #elif __OpenBSD__ || __FreeBSD__ || __NetBSD__ ffReadFileBuffer(_PATH_LOCALBASE "/share/hwdata/pci.ids", &pciids); + if (pciids.length == 0) + ffReadFileBuffer(_PATH_LOCALBASE "/share/pciids/pci.ids", &pciids); #elif __sun ffReadFileBuffer(FASTFETCH_TARGET_DIR_ROOT "/usr/share/hwdata/pci.ids", &pciids); #elif __HAIKU__