李通洲
f9597eba39
Global: remove #ifndef FF_INCLUDED_* guards
2023-11-09 13:46:45 +08:00
李通洲
499e6c85a0
Battery (Windows): slilence compiler warnings
2023-11-07 09:59:00 +08:00
李通洲
c55ba2685f
Battery (macOS): add status Discharging to be consistant with other platforms
2023-11-07 08:56:07 +08:00
李通洲
f5b987dba9
Battery (Windows): detect cycle count
2023-11-06 19:40:40 +08:00
李通洲
f8eabdd8a6
Battry (Linux): try detecting cycle count and temperature
2023-11-06 19:08:17 +08:00
李通洲
5ab2c3456d
Battery (Apple): better detection
2023-11-06 16:42:16 +08:00
李通洲
ae34208247
Battery (Windows): add flag --battery-use-setup-api
2023-10-30 14:49:00 +08:00
李通洲
bed1b4cf0f
Global: move general options to a new separate folder
2023-10-25 13:39:13 +08:00
李通洲
90ea096ca3
macOS: don't keep variable matchDict
2023-10-07 15:51:05 +08:00
李通洲
3669f2aee4
Battery: rename BatteryResult to FFBatteryResult
2023-09-05 15:29:46 +08:00
李通洲
5c603145ab
Battery (Windows): tidy
2023-08-08 23:18:41 +08:00
李通洲
74233ac0cb
Temps (macOS): code refactors
2023-08-07 10:19:08 +08:00
李通洲
3c5c2d2ca8
Battery (Android): support detection with dumpsys
2023-07-19 15:44:40 +08:00
李通洲
8ef2bb788f
Battery (Android): use yyjson to parse JSON string
2023-07-19 15:44:40 +08:00
Carter Li
296eaa592c
Battery (FreeBSD): tidy
2023-06-24 17:28:05 +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
李通洲
baa8992322
Global: refactor strcmp() == 0 to ffStrEquals()
2023-06-19 17:11:57 +08:00
Carter
9c66732593
Battery (FreeBSD): truly support FreeBSD
2023-06-15 13:13:07 +00:00
李通洲
8a284ae9a1
Battery: use module options
2023-06-12 10:32:35 +08:00
李通洲
39582471e8
Global: major FFlist related code refactor
2023-06-10 09:15:15 +08:00
李通洲
c7119498a3
Global: major FFstrbuf related code refactor
2023-06-10 09:15:15 +08:00
李通洲
4e3e469ba8
Battery: major code refactoring
...
ditto
2023-06-10 09:15:15 +08:00
李通洲
aea0986928
CMake(Windows): remove USE_WIN_NTAPI option
2023-05-11 19:55:31 +08:00
李通洲
725d2f2612
Windows: fix <Windows.h> header mess
2023-03-25 00:50:40 +08:00
李通洲
e05d9da231
Battery / Wifi: fix missing NULL for ffProcessAppendStdOut
2023-02-22 15:12:37 +08:00
李通洲
3e068d16df
Wifi / Battery (Android): more accurate checks
2023-02-21 21:25:02 +08:00
李通洲
efdbeb585b
Battery (Android): add temperature
2023-02-21 09:43:22 +08:00
李通洲
304f171d38
Battery / Wifi (Android): add more debug messages
2023-02-21 09:42:41 +08:00
李通洲
8ffe6fda9b
Battery: drop powrprof.dll dependency
2023-02-08 15:11:50 +08:00
Linus Dierheimer
a1ea7804f3
IO: Separate platform specific implementations
2023-01-28 12:40:12 +01:00
李通洲
c1444c0822
Android: support Wifi & Battery by using termux-api
2023-01-21 15:23:40 +08:00
李通洲
b1f63ab822
Global: rename FF_UNUSED_PARAM to FF_MAYBE_UNUSED since it can be used on functions too.
2023-01-11 14:47:10 +08:00
李通洲
b8393051e4
Battery: add comments for future use (FreeBSD)
2023-01-11 13:52:14 +08:00
李通洲
bc8a7a03c3
Battery: fix bug on FreeBSD
...
oops
2023-01-10 12:42:15 +08:00
李通洲
d4c361ae12
Battery: support FreeBSD
...
Completely untested
2023-01-10 12:36:38 +08:00
李通洲
0fd63084dc
Global: fix other possible bugs where enumerating directories without ignoring . and ..
2023-01-09 10:45:51 +08:00
李通洲
27fb0c6c06
Battery: improve performance (Windows)
2022-12-17 12:31:37 +08:00
李通洲
4cf1d5bf94
util: rename unicode helper function names
2022-11-27 12:21:32 +08:00
李通洲
051423e75e
util: add mallocHelper and use it
2022-11-23 17:44:57 +08:00
李通洲
27212e8b98
Battery: improve performance (Windows)
2022-11-23 15:38:59 +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
李通洲
e13c88cea6
Global: support bar output for percentage value #294
2022-10-22 16:15:12 +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
李通洲
49921f5ed1
Disk: add support for Windows
...
Also major refactoring of util/windows/wmi
2022-10-09 15:37:14 +08:00
李通洲
bedd6a1d5d
Battery: add support for Windows
2022-10-09 15:37:13 +08:00
李通洲
100e59fd49
Temps: add options to enable detection ( disabled by default )
2022-09-26 15:29:11 +08:00
李通洲
51c70bc44a
Temps: support macOS
2022-09-26 15:29:11 +08:00
李通洲
5498b0b042
PowerAdapter: make it a seperated module
2022-09-23 15:33:23 +08:00