李通洲
61656a1a7a
Global: replaces __attribute__ to C23 [[attribute]]
2026-07-11 08:14:21 +08:00
李通洲
ba18705d2e
Global: replaces NULL to nullptr
2026-07-10 18:10:09 +08:00
Carter Li
f6a363f7ad
Global: unifies GCC attributes usage
2026-04-09 20:02:04 +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
李通洲
12746a9681
Global: fixes issues raised by AI
2026-03-26 16:40:15 +08:00
李通洲
246ff0bc88
Common (Windows): adds a unique type for querying registry binary data
2026-03-24 17:20:47 +08:00
李通洲
92c65aad10
Font (Windows): reads Control Panel registry directly
...
Improves performance
2026-03-23 10:50:03 +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
李通洲
7d92da8829
Global (Android): enable X11 related stuff
2025-09-01 16:28:13 +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
Carter Li
76b8b9a44b
Chore: remove unused #includes
2025-02-16 22:53:20 +08:00
François Revol
01f400c15f
Haiku: minimal implementation ( #1538 )
2025-02-05 09:08:28 +08:00
李通洲
b257134d74
Chore: introduce macro ARRAY_SIZE
2024-10-18 16:44:41 +08:00
Diego Viola
7aad0dc32f
Theme: Fix spelling of Qt ( #1062 )
...
Signed-off-by: Diego Viola <diego.viola@gmail.com >
2024-07-01 14:38:29 +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
李通洲
bb489f9af3
Common: get rid of detection/internal.h
2023-12-30 18:13:54 +08:00
李通洲
f9597eba39
Global: remove #ifndef FF_INCLUDED_* guards
2023-11-09 13:46:45 +08:00
李通洲
d0f093c567
Global: make FFinstance instance a global variable
...
As discussed in https://github.com/fastfetch-cli/fastfetch/discussions/473
2023-06-24 17:28:05 +08:00
李通洲
3bf83e45ed
Font: don't use singleton
2023-06-13 09:04:41 +08:00
Linus Dierheimer
a37328c1aa
Font: Show QT before GTK
...
keeps consistency with other modules
2023-05-28 12:34:23 +02:00
李通洲
71614e0b0c
Font: code refactor
2023-04-04 12:06:21 +08:00
李通洲
725d2f2612
Windows: fix <Windows.h> header mess
2023-03-25 00:50:40 +08:00
李通洲
4f28ae62a7
Font: don't depend on displayserver detection on Windows and macOS.
2023-02-25 13:31:36 +08:00
李通洲
6407bf6a1f
GTK / QT: refactor directory structures
2023-02-14 17:47:39 +08:00
Linus Dierheimer
a1ea7804f3
IO: Separate platform specific implementations
2023-01-28 12:40:12 +01:00
李通洲
4cf1d5bf94
util: rename unicode helper function names
2022-11-27 12:21:32 +08:00
李通洲
325aa536c4
Font: improve performance (Windows)
2022-11-23 20:01:41 +08:00
李通洲
e8e586ce7c
Windows / macOS: simplify code
...
1. simplify resource management by using C++ RAII like GCC attribute extension `cleanup`
2. simplify HEKY reading
Actually `__attribute__((__cleanup__(cleanupFn)))` is supported on all major C compiler ( gcc, clang and icc ) except MSVC I only used it on Windows and macOS for now. Let's see if the project author like it.
2022-11-17 19:54:36 +08:00
李通洲
0361a30c40
Font: simplify code; fix memleaks (macOS)
2022-11-17 10:18:13 +08:00
李通洲
38b3aae1e3
Windows: simplify WMI query code
...
by making C++ code more C++
2022-10-17 00:17:26 +08:00
李通洲
5e3e2b6137
Windows: fix possible crashes
2022-10-12 00:19:31 +08:00
李通洲
f2540f00a5
Address some feedbacks
2022-10-09 23:23:46 +08:00
李通洲
6e190c6f7c
Fix some mistakes
2022-10-09 17:47:30 +08:00
李通洲
661c174348
Merge remote-tracking branch 'origin/master' into msys2
2022-10-09 16:55:51 +08:00
Linus Dierheimer
1dd942a7b1
TARGET_DIR_ETC
2022-10-09 10:39:57 +02:00
李通洲
cc490294e9
Font: add support for Windows
2022-10-09 15:37:14 +08:00
李通洲
946154dbac
Font: suppress IO when detecting fonts on macOS
...
Removes
* 2022-09-29 07:06:58.649 flashfetch[92995:31447779] XType: com.apple.fonts is not accessible.
* 2022-09-29 07:06:58.649 flashfetch[92995:31447779] XType: XTFontStaticRegistry is enabled.
2022-09-29 22:19:08 +08:00
李通洲
ca75b6b55b
Font: fix compiling on Android; detect more fonts on macOS
2022-09-29 22:13:27 +08:00
Linus Dierheimer
e6e189497d
Refactor font output
2022-09-29 14:15:11 +02:00
李通洲
4632fe8cd9
Android: fix compiling
2022-09-27 23:30:55 +08:00
李通洲
0be2410925
Font: support macOS
...
The original result format was too Linux specific to make it portable, so I simplified it.
2022-09-26 15:29:11 +08:00