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
Carter Li
15766f5266
Disk (BSD): dont set createTime if stat fails to detect it
2024-05-18 13:38:07 +08:00
Carter Li
4ffa0ffcb7
Disk (FreeBSD): ensure createTime is inited
2024-05-18 13:09:37 +08:00
李通洲
2fc9230b29
Disk (Windows): use sub thread to check accessiblity of remote volumes.
2024-05-04 15:15:00 +08:00
李通洲
9afcc00201
Disk (Windows): don't rely on env vars
2024-05-01 19:32:15 +08:00
李通洲
982e8a0117
Disk (Windows): make / an alias of C:\ for --disk-folders
2024-05-01 15:52:38 +08:00
李通洲
367264e549
Disk: only detect folders that specified by --disk-folders
...
Can be used to improve performance by ignoring network disks
2024-04-30 15:42:44 +08:00
李通洲
1058e876a7
Revert "Disk (Windows): add --disk-ignore-remote"
...
This reverts commit c71b04ba93 .
2024-04-30 14:46:26 +08:00
李通洲
c71b04ba93
Disk (Windows): add --disk-ignore-remote
2024-04-29 23:28:20 +08:00
李通洲
4580f3fd54
Disk (Linux): hide drivers folder in WSL
2024-04-21 17:35:47 +08:00
李通洲
282939f548
Disk (Windows): detect create time
2024-04-09 20:47:06 +08:00
李通洲
6f35b2f382
Disk (Linux): detect create time
2024-04-09 20:47:06 +08:00