Carter Li
d1bf208a92
Chore: renames stringUtils to strutil
2026-05-28 15:58:08 +08:00
李通洲
c601b68bc6
Doc: improves overall English grammer
2026-04-16 18:27:11 +08:00
李通洲
c7ecc33b64
Global: removes FFlist::elementSize
...
Improves performance of module Sound and PhysicalMemory
2026-04-14 15:47:26 +08:00
李通洲
831659966f
Style: adds Cpp11BracedListStyle: Block
2026-03-31 14:20:21 +08:00
李通洲
e0eba8ce21
Chore: run clang-format
...
```bash
find . -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) ! -path "src/3rdparty/*" -print0 | xargs -0 clang-format -i
```
2026-03-29 10:03:32 +08:00
李通洲
3a35f9735b
Global: renames FFformatArgType to FFArgType for future reuse
2026-03-12 15:07:19 +08:00
Carter Li
d60b25e424
Refactor: renames src/util to src/common
2026-01-06 09:48:38 +08:00
李通洲
1e43e35857
Chore: merges common/* into util/*
2026-01-05 17:54:41 +08:00
李通洲
e63b777916
GPU: handles missing GPU type as null in JSON output
2025-11-01 16:44:36 +08:00
李通洲
3b5e9c74d6
Modules: return bool to indicate whether the detection is succeeded
2025-08-18 13:38:30 +08:00
李通洲
61f2823903
Global: fixes -ffast-math compatibility
...
Unifies unset double handling using `-DBL_MAX` sentinel
Fixes #1894
2025-08-14 10:01:34 +08:00
李通洲
fa4e11c73b
JsonConfig: write all flags when generating config file
2025-08-05 16:47:48 +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
李通洲
559082806b
Modules: export module info
2025-08-04 00:06:28 +08:00
李通洲
6f8d276545
Modules: add init and destroy option callbacks to module info
2025-08-03 18:40:53 +08:00
李通洲
dd4f006b5f
GPU: support "hideType": null
2025-08-03 10:22:32 +08:00
李通洲
094d736d38
Modules: remove all parseCommandOptions and related stuff
2025-08-03 10:22:32 +08:00
李通洲
0b02543ef2
JsonConfig: refactor JSON key handling to improve safety and consistency
...
Also make keys case-sensitive
2025-08-02 18:51:03 +08:00
李通洲
a0174e8666
Global: add new unit related options
...
1. `--<module>-space-before-unit`
2. `--duration-abbreviation`
3. various code refactoring and cleanups
2025-07-30 15:03:23 +08:00
李通洲
c79b67efc1
Modules: don't report errors when condition key is set
2025-07-18 16:16:38 +08:00
Carter Li
ff3028c656
GPU: don't hide unknown type of GPUs by default
...
Fix #1742
2025-05-09 21:58:41 +08:00
Samuli Thomasson
484e05eae3
GPU: optionally hide unknown GPUs ( #1742 )
...
The current default behavior of not hiding any GPUs is retained. The new
feature of hiding unknown or unrecognized GPUs can be enabled with
hide-type = "unknown".
2025-05-07 22:06:47 +08:00
李通洲
2b20ed873c
GPU: update JSON result structure; fix segfault and memleaks
2025-03-24 22:56:00 +08:00
李通洲
cc246ea239
GPU: prepare for memory type & shared memory usage detection
2025-03-24 15:21:14 +08:00
Carter Li
a2327b7350
GPU: support percentage num & bar in custom format
...
Fix #1583
2025-02-24 15:19:40 +08:00
李通洲
c5c2589f4d
GPU: set GPU vendor string when using OpenGL backend
2025-01-10 08:48:29 +08:00
李通洲
9a36d63d18
Global: refactor code of -h <module>-format
2024-12-11 10:47:02 +08:00
李通洲
c9e3f8d95c
Global: support percent type config in module level
2024-11-14 13:52:02 +08:00
李通洲
97e1b987dd
Global: pack all enums and make flag enums unsigned
2024-11-14 11:00:44 +08:00
李通洲
fd26373c8f
Global: overall optimization
2024-10-26 11:42:07 +08:00
李通洲
0bcbae90e9
GPU: clean up GPU index detection code
2024-09-19 15:38:43 +08:00
michela feng
9332f42889
GPU: detect GPU index ( #1267 )
2024-09-19 15:22:09 +08:00
李通洲
37cc2c9c1b
Globals: use generic selection when passing format args
2024-09-04 08:53:16 +08:00
李通洲
bfdcab5b57
GPU: don't pre-allocate memory
2024-08-15 13:59:27 +08:00
李通洲
f866c90687
GPU: defaults to --gpu-detection-method pci on x86 to detect disabled gpus
2024-08-08 16:23:58 +08:00
李通洲
c549a5cab8
GPU (macOS): report core usage
2024-08-01 13:54:03 +08:00
李通洲
57ffe3bad2
Fastfetch: add icons
2024-07-23 23:02:35 +08:00
李通洲
83dcdaa726
GPU: fix frequency printing when using custom formation
2024-07-23 09:50:51 +08:00
李通洲
408a2d731a
GPU: support printing frequency in MHz
2024-07-17 15:49:12 +08:00
Carter Li
801bd7c879
GPU: fix --gpu-hide-type doesn't work
...
Fix #1098
2024-07-15 18:34:43 +08:00
李通洲
f97a9fdfc0
GPU: don't print 16 EiB
2024-06-29 07:55:01 +08:00
李通洲
0b943bb25e
GPU: print formatted size when --gpu-format is used
...
Fix #1052
2024-06-28 22:24:02 +08:00
李通洲
16d70eed03
GPU: report deviceId in JSON output
2024-06-21 08:57:08 +08:00
李通洲
6318668d0b
GPU: support detect gpu devices with OpenCL
2024-06-20 15:14:52 +08:00
Carter Li
c8451cab52
Global: support for named format arguments
...
Fix #796
2024-05-28 10:23:29 +08:00
李通洲
302716fa61
GPU: silence compiler warnings
2024-05-20 20:43:24 +08:00
Carter Li
a8b734c877
GPU: change option --gpu-force-vulkan to --gpu-detection-method
2024-05-20 16:46:04 +08:00
Carter Li
10ca77610e
GPU (Linux): detect GPU core count and freq for asahi linux
2024-05-20 15:32:13 +08:00
李通洲
459f159b1b
Fastfetch: revert to module color after printing custom colors
2024-05-08 15:25:59 +08:00
李通洲
7acdaebee4
Printing: merge ffPrintError and ffPrintErrorString
2024-03-07 11:10:18 +08:00