李通洲
df87cdfa6e
Windows: defines NtCurrentProcess and uses it
2026-02-13 19:38:22 +08:00
李通洲
5825bce57d
Disk (Windows): replaces most Kernel32 calls to ntdll calls
...
* Improves accurancy of detection of drive create time
* Improves performance slightly
* Removes remove drive check, `hideFolders` should be used instead
2026-02-10 18:50:35 +08:00
Carter Li
d60b25e424
Refactor: renames src/util to src/common
2026-01-06 09:48:38 +08:00
Carter Li
61690a1804
Util: moves util/io/io.h to util/io.h
2026-01-06 09:13:40 +08:00
李通洲
1e43e35857
Chore: merges common/* into util/*
2026-01-05 17:54:41 +08:00
李通洲
645bf5c839
Disk: moves disk hiding by folder and FS type to detection code
...
Don't probe if hided
Fixes #2043
2025-11-06 13:39:30 +08:00
Carter Li
1bbb21486c
Disk (Linux): f* Android
...
Fixes #1993
2025-10-03 16:53:09 +08:00
李通洲
57a4b9b6ed
Disk: refactors mountpoint matching to use shared string utilities
2025-09-19 14:54:13 +08:00
李通洲
f0e9caaf04
Disk: allows array input for disk folder and filesystem options
2025-09-18 14:51:00 +08:00
李通洲
82cdc4cd91
Disk (Linux): avoids invalid disk creation times before Linux epoch
...
Prevent fastfetch from printing invalid create date on Android
2025-09-17 15:37:51 +08:00
Carter Li
822ddc6dc6
Disk (Linux): replace statx(2) call to syscall(2)
2025-09-17 15:09:39 +08:00
Carter Li
49982588cf
Disk (Linux): remove unused headers
2025-08-20 23:52:53 +08:00
李通洲
75d2c668d0
Modules: refactor module option handling for static allocation
...
Moves module option structs out of global config and removes dynamic allocation, using static buffers and size assertions for safer, simpler management.
Refactors module initialization and destruction to work with isolated option structs, eliminating the need for the previous modules container and related code.
Unifies module option header usage and updates detection logic to leverage statically-sized option buffers, improving encapsulation and maintainability.
Simplifies module function signatures and reduces coupling between modules and config.
Enhances future extensibility and reliability by enforcing max size constraints and removing unnecessary indirections.
2025-08-04 14:46:01 +08:00
李通洲
582268f44f
Disk (Linux): ignore Bedrock Linux subvolumes
...
Ref: https://github.com/fastfetch-cli/fastfetch/issues/1881#issuecomment-3148302531
2025-08-03 18:19:45 +08:00
Carter Li
a734f18fd5
Chore (Linux): silience compiler warnings
2025-07-15 23:33:26 +08:00
李通洲
c2ed71c4eb
Global: set SetErrorMode(SEM_FAILCRITICALERRORS) globally
...
Fix #1805
2025-06-15 00:00:22 +08:00
Carter Li
5e0ba57f53
Disk (BSD): silence compiler warnings
2025-06-05 04:55:12 +08:00
Carter Li
6b94605804
Disk (BSD): don't ignore sshfs
2025-06-03 18:58:38 +08:00
李通洲
d60b2ddfd4
Disk (Linux): don't ignore sshfs
...
Fix #1776
2025-06-02 19:09:24 +08:00
Carter Li
a0f579072f
Disk: add --disk-hide-fs
...
Fix #1762
2025-05-21 16:40:42 +08:00
Carter Li
d439ce8eb5
Disk: rename hiddenFolder to hideFolder; add docs
2025-05-21 15:09:19 +08:00
李通洲
8eb8f710d0
Disk: add option --disk-hidden-folders
2025-05-19 18:32:56 +08:00
李通洲
526868e355
Disk (Linux): don't hard code hidden mount points
2025-05-19 15:25:06 +08:00
李通洲
f59491b25d
Disk (Linux): fix possible bug on 32-bit platforms
...
Fix #1734
2025-05-05 22:05:22 +08:00
李通洲
4fccad5d10
Disk (macOS): silense compiler warnings
2025-03-28 14:57:43 +08:00
李通洲
0d4f1544c7
Chore: fix code smell
2025-03-26 14:42:55 +08:00
李通洲
e68a9476b5
Disk (SunOS): remove creation time detection support
...
ctim is `Timestamp of last file status change`, not creation time
2025-03-26 11:02:57 +08:00
李通洲
966b8452b7
Disk (Haiku): report all partitions
2025-02-18 09:35:56 +08:00
Carter Li
01d37653b0
Disk (Haiku): code cleanup; honor option->folders
2025-02-16 11:05:53 +08:00
François Revol
c64854804d
Haiku: 32bit fixes
...
For historical reasons int32 and int32_t are not compatible types.
2025-02-15 12:08:27 +08:00
李通洲
da76dcb2fe
Disk (Haiku): add support
2025-02-12 00:42:55 +08:00
Carter Li
fe7c4f724e
Disk (BSD): silence compiler warnings
2025-01-27 23:52:59 +08:00
Carter Li
66deb4316b
Disk (NetBSD): silence compiler warnings
...
Ref: https://github.com/NetBSD/pkgsrc/blob/ef998fe87c836293a337726e5f212011d4ee0327/sysutils/fastfetch/patches/patch-src_detection_disk_disk__bsd.c
2025-01-21 09:41:40 +08:00
Carter Li
f7288fec01
Global: support DragonFly BSD
2024-11-03 08:35:11 +08:00
Carter Li
49902d8c2f
Disk (NetBSD): fix disk size detection
2024-10-30 23:46:40 +08:00
Carter Li
bc550a5ea7
Disk (OpenBSD): fix build
2024-10-28 16:27:29 +08:00
Carter Li
081e8ea39f
Disk: support NetBSD, improve hidden partition detection
2024-10-28 16:11:37 +08:00
李通洲
fd26373c8f
Global: overall optimization
2024-10-26 11:42:07 +08:00
李通洲
b257134d74
Chore: introduce macro ARRAY_SIZE
2024-10-18 16:44:41 +08:00
李通洲
6500cddc09
Disk (Android): fix compiling
2024-10-17 15:25:54 +08:00
李通洲
a0ad38d1d4
Disk: check for mntopt instead of statvfs when detecting read only flags
...
Ref: #1343
2024-10-15 23:08:10 +08:00
apocelipes
84cc9e3b15
Chore: fix some unused paramater/function warnings ( #1324 )
2024-10-06 23:01:49 +08:00
Carter Li
a32d9d788c
OpenBSD: init platform support
2024-10-04 17:49:18 +08:00
李通洲
a1f0570a96
Chore: fix typos
2024-09-13 22:26:47 +08:00
李通洲
099a390f2f
Disk (Linux): fix hang in WSL when custom format is used
2024-08-21 00:23:24 +08:00
Sergey Fedorov
1101d2e90e
Disk (BSD): minor fix for a type, fixes calculation of disk usage on 32-bit ( #1150 )
2024-08-04 20:08:21 +08:00
李通洲
25577a6e58
Disk (Android): ignore /apex/*
2024-07-15 22:56:14 +08:00
Carter Li
06aaf0f3fd
SunOS: support disk detection; fix a small bug
2024-06-17 19:32:54 +08:00
Carter Li
d35490aeef
Fastfetch: make it compile on SunOS
2024-06-16 01:02:48 +08:00
Shu Niu
758ddae344
macOS: Add support for old MacOS version ( #936 )
...
* Add support for old MacOS version, fix-1.
* Add support for old MacOS version, fix-2.
* Add support for old MacOS version with fixing metal gpu api.
* Update disk_bsd.c
* Update disk_bsd.c
* Update gpu_apple.m
* Update monitor_apple.m
* Update os_apple.m
* Update wifi_apple.m
* Update camera_apple.m
* Update camera_apple.m
---------
Co-authored-by: Carter Li <CarterLi@users.noreply.github.com >
2024-05-19 09:31:08 +08:00