Skip to content

Commit 0b32abd

Browse files
authored
Merge pull request fastfetch-cli#1302 from fastfetch-cli/dev
Release: v2.26.1
2 parents 6485d34 + 73e61c2 commit 0b32abd

File tree

5 files changed

+23
-6
lines changed

5 files changed

+23
-6
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# 2.26.1
2+
3+
Features:
4+
* Allow to disable pacstall packager detection in CMake
5+
6+
Bugfixes:
7+
* Fix uninitialized variables (GPU, Windows)
8+
19
# 2.26.0
210

311
Changes:

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url
22

33
project(fastfetch
4-
VERSION 2.26.0
4+
VERSION 2.26.1
55
LANGUAGES C
66
DESCRIPTION "Fast neofetch-like system information tool"
77
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"
@@ -90,7 +90,7 @@ if(NOT BINARY_LINK_TYPE IN_LIST BINARY_LINK_TYPE_OPTIONS)
9090
message(FATAL_ERROR "BINARY_LINK_TYPE must be one of ${BINARY_LINK_TYPE_OPTIONS}")
9191
endif()
9292

93-
set(PACKAGE_MANAGERS AM APK BREW CHOCO DPKG EMERGE EOPKG FLATPAK GUIX LINGLONG LPKG LPKGBUILD MACPORTS NIX OPKG PACMAN PALUDIS PKG PKGTOOL RPM SCOOP SNAP SORCERY WINGET XBPS)
93+
set(PACKAGE_MANAGERS AM APK BREW CHOCO DPKG EMERGE EOPKG FLATPAK GUIX LINGLONG LPKG LPKGBUILD MACPORTS NIX OPKG PACMAN PACSTALL PALUDIS PKG PKGTOOL RPM SCOOP SNAP SORCERY WINGET XBPS)
9494
foreach(package_manager ${PACKAGE_MANAGERS})
9595
if(package_manager STREQUAL "WINGET")
9696
option(PACKAGES_DISABLE_${package_manager} "Disable ${package_manager} package manager detection by default" ON)

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
fastfetch (2.26.0) jammy; urgency=medium
2+
3+
* Update to 2.26.0
4+
5+
-- Carter Li <[email protected]> Sun, 29 Sep 2024 13:31:25 +0800
6+
17
fastfetch (2.25.0) jammy; urgency=medium
28

39
* Update to 2.25.0

debian/files

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fastfetch_2.25.0_source.buildinfo universe/utils optional
1+
fastfetch_2.26.0_source.buildinfo universe/utils optional

src/detection/gpu/gpu_windows.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const char* ffDetectGPUImpl(FF_MAYBE_UNUSED const FFGPUOptions* options, FFlist*
4747
gpu->deviceId = 0;
4848
gpu->frequency = FF_GPU_FREQUENCY_UNSET;
4949

50-
uint32_t pciBus, pciAddr, pciDev, pciFunc;
50+
uint32_t pciBus = 0, pciAddr = UINT32_MAX, pciDev = 0, pciFunc = 0;
5151
if (SetupDiGetDeviceRegistryPropertyW(hdev, &did, SPDRP_BUSNUMBER, NULL, (PBYTE) &pciBus, sizeof(pciBus), NULL) &&
5252
SetupDiGetDeviceRegistryPropertyW(hdev, &did, SPDRP_ADDRESS, NULL, (PBYTE) &pciAddr, sizeof(pciAddr), NULL))
5353
{
@@ -92,7 +92,10 @@ const char* ffDetectGPUImpl(FF_MAYBE_UNUSED const FFGPUOptions* options, FFlist*
9292
gpu->shared.total = sharedSystemMemory;
9393
}
9494

95-
ffRegReadUint64(hDirectxKey, L"AdapterLuid", &adapterLuid, NULL);
95+
if (ffRegReadUint64(hDirectxKey, L"AdapterLuid", &adapterLuid, NULL))
96+
{
97+
if (!gpu->deviceId) gpu->deviceId = adapterLuid;
98+
}
9699

97100
uint32_t featureLevel = 0;
98101
if(ffRegReadUint(hDirectxKey, L"MaxD3D12FeatureLevel", &featureLevel, NULL) && featureLevel)
@@ -151,7 +154,7 @@ const char* ffDetectGPUImpl(FF_MAYBE_UNUSED const FFGPUOptions* options, FFlist*
151154
&(FFGpuDriverCondition) {
152155
.type = FF_GPU_DRIVER_CONDITION_TYPE_DEVICE_ID
153156
| (adapterLuid > 0 ? FF_GPU_DRIVER_CONDITION_TYPE_LUID : 0)
154-
| (vendorId > 0 ? FF_GPU_DRIVER_CONDITION_TYPE_BUS_ID : 0),
157+
| (pciAddr > 0 ? FF_GPU_DRIVER_CONDITION_TYPE_BUS_ID : 0),
155158
.pciDeviceId = {
156159
.deviceId = deviceId,
157160
.vendorId = vendorId,

0 commit comments

Comments
 (0)