Linus Dierheimer
7bef5008c2
Second round of fixes for FFPlatform
2023-01-15 16:26:08 +01:00
Linus Dierheimer
3ef3cca76b
First round of fixes for FFPlatform
2023-01-15 16:06:50 +01:00
Linus Dierheimer
a1d8e3e598
Introduce FFPlatform
2023-01-15 15:57:26 +01:00
Linus Dierheimer
dd77ebe11e
Fix GitHub code scanning alert
2023-01-14 19:59:54 +01:00
李通洲
27efc94b09
FFlist: silence compiler warnings when compiling with -m32
2023-01-15 01:02:10 +08:00
李通洲
e076097a7c
FFlist: fix compiler warnings
2023-01-14 00:19:55 +08:00
李通洲
3cee8f5475
FFlist: add new functions to make it be able to work as a queue
2023-01-13 19:08:14 +08:00
李通洲
67ab7c0779
GPU: support vendor detection
2023-01-13 15:20:30 +08:00
李通洲
ccdb5c54d0
Linux: enable FF_*_AUTO_DESTROY
...
They have been on Windows and macOS for sometime and worked well.
2023-01-11 13:55:06 +08:00
李通洲
c6365755c7
Title: fix computer name being trancated sometime
2023-01-10 20:56:54 +08:00
李通洲
e7af38aa11
DisplayServer: make display brightness actually work (Windows)
2023-01-08 01:27:54 +08:00
李通洲
0d722ebe0b
Config: add --list-config-paths option
2023-01-02 16:51:11 +08:00
李通洲
822496808d
Windows: look for config files in $LOCALAPPDATA
2023-01-02 16:34:57 +08:00
李通洲
5efd7b9ac4
FFstrbuf: add ffStrbufContainC
2022-12-29 11:03:33 +08:00
李通洲
8f3900a9df
Windows: add manifest file to indicate that we use UTF-8 and support Windows 10+
2022-12-20 22:40:06 +08:00
李通洲
4558af2e43
Windows: fix build
2022-12-10 13:10:06 +08:00
李通洲
ed259fad9c
Windows: tweaks
2022-12-08 18:33:43 +08:00
李通洲
b4e2997389
Tests: don't include fastfetch.h
2022-12-08 18:29:24 +08:00
李通洲
983bd50a09
FFstrbuf: improve performance of InitF
2022-12-06 16:27:00 +08:00
李通洲
8b0d034a94
FFstrbuf: fix bug of AppendF when string len == ffStrbufGetFree
2022-12-02 22:20:01 +08:00
李通洲
5c381460ce
util: rename register -> registry
2022-11-27 12:21:53 +08:00
李通洲
4cf1d5bf94
util: rename unicode helper function names
2022-11-27 12:21:32 +08:00
李通洲
4fa3ca98a2
util/register: fix crashing when value string contains non-ascii chars
...
We can't use RegGetValueA because RegGetValueA converts wide string to non UTF-8 string, which results in crashing when printing
2022-11-23 17:44:57 +08:00
李通洲
051423e75e
util: add mallocHelper and use it
2022-11-23 17:44:57 +08:00
李通洲
ae562ac962
Cursor: support Windows (not working yet)
2022-11-23 17:44:57 +08:00
李通洲
629c2de253
util: add a helper function to convert wide strings (Windows)
2022-11-23 15:38:59 +08:00
李通洲
04c9d16c16
util: introduce register helpers and use them (Windows)
2022-11-22 19:40:56 +08:00
李通洲
0a65867937
Windows: fix memleaks
2022-11-20 00:52:52 +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
李通洲
d0d6f48751
osascript: simplify code (macOS)
2022-11-17 10:18:29 +08:00
李通洲
e3de39d3ab
Windows: add version info in binaries
2022-11-12 21:33:31 +08:00
李通洲
85a554b60d
CPU: support Windows 7
2022-11-12 21:33:31 +08:00
李通洲
d670a9a584
Kernel: support Windows 7
2022-11-12 21:33:31 +08:00
李通洲
f470744e44
Kernel: improve performance, detect code name (Windows)
2022-10-25 20:02:26 +08:00
李通洲
1588f58726
Windows: silence warnings when building with clang
2022-10-23 10:11:54 +08:00
Linus Dierheimer
7bbd2aee94
Merge pull request #305 from LinusDierheimer/work/disk_refactor
...
Work/disk refactor
2022-10-17 18:24:29 +02:00
Linus Dierheimer
19a9b18c69
Disk: Linux impl working
2022-10-17 13:19:48 +02:00
李通洲
38b3aae1e3
Windows: simplify WMI query code
...
by making C++ code more C++
2022-10-17 00:17:26 +08:00
李通洲
5d5663e2a7
Kernel: fix detection on Windows
...
According to MSDN, GetVersionExA is not reliable. We have to query WMI instead.
2022-10-17 00:17:19 +08:00
李通洲
b042b90d9b
TerminalShell: improve shell detection on Windows
2022-10-15 11:36:24 +08:00
李通洲
4f67ed2b77
TerminalShell: add some pretty names
2022-10-14 19:16:55 +08:00
李通洲
3cc6611614
Windows: support native Windows
2022-10-13 23:49:09 +08:00
李通洲
5e3e2b6137
Windows: fix possible crashes
2022-10-12 00:19:31 +08:00
李通洲
8e8d283959
Windows: fix crashing
2022-10-11 20:13:44 +08:00
Linus Dierheimer
d54f14a14c
ffStrbufLastIndexC: account for empty strings
...
#285
2022-10-11 12:37:54 +02:00
李通洲
49921f5ed1
Disk: add support for Windows
...
Also major refactoring of util/windows/wmi
2022-10-09 15:37:14 +08:00
李通洲
c0daeb16df
Users: add support for Windows
2022-10-09 15:37:13 +08:00
李通洲
bedd6a1d5d
Battery: add support for Windows
2022-10-09 15:37:13 +08:00
李通洲
c7e6e45078
Host: split Bios module; init support for Windows
2022-10-06 23:02:39 +08:00
李通洲
e7c9b80d85
Fix building on Linux
...
It seems that glibc doesn't support strnstr, and strcasestr requires
_GNU_SOURCE to be defined
2022-09-29 18:33:37 +08:00