李通洲
2f5cbfb03a
Image: enable im7 on macOS
2022-12-20 11:04:57 +08:00
李通洲
c7bec3d0c9
Image: enable imagemagick 6 on macOS
...
Program crashed when imagemagick 7 used, for some reason.
2022-12-19 22:34:29 +08:00
李通洲
27fb0c6c06
Battery: improve performance (Windows)
2022-12-17 12:31:37 +08:00
李通洲
a3cb6608ce
Locale: refactor
2022-12-16 11:51:32 +08:00
李通洲
e4a5194115
Rework stdout buffering on Windows.
...
Windows doesn't support line-buffering. We enable full-buffering instead and flush buffers per module.
2022-12-14 16:27:04 +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
李通洲
19ec59cca5
Wifi: init basic support for Linux
2022-12-02 22:43:46 +08:00
李通洲
0cad657ce2
Swap: correct implementation (Windows)
2022-12-02 01:12:48 +08:00
李通洲
b3e635a923
Wifi: support macOS
2022-11-28 16:59:11 +08:00
李通洲
5e5442426c
Wifi: load wlanapi.dll dynamically
...
Windows Server doesn't support it
2022-11-27 16:22:30 +08:00
李通洲
a55add190c
Wifi: add new module
...
Only Windows is supported currently
2022-11-27 12:21:53 +08:00
李通洲
5c381460ce
util: rename register -> registry
2022-11-27 12:21:53 +08:00
李通洲
34d3021b80
Build: fix Android is incorrectly detected as Linux
2022-11-25 19:17:37 +08:00
Linus Dierheimer
00f86c6346
CMake: Don't require pkg-config
2022-11-24 18:10:49 +01:00
李通洲
d70b3100f2
BSD: fix build
2022-11-24 18:59:40 +08:00
李通洲
325aa536c4
Font: improve performance (Windows)
2022-11-23 20:01:41 +08:00
李通洲
31863baee2
CpuUsage: remove unused code (Windows)
2022-11-23 20:01:41 +08:00
李通洲
0f08233581
Users: improve performance (Windows)
2022-11-23 20:01:40 +08:00
李通洲
ae562ac962
Cursor: support Windows (not working yet)
2022-11-23 17:44:57 +08:00
李通洲
772dd1e294
GPU: improve performance (Windows)
2022-11-23 15:38:59 +08:00
李通洲
27212e8b98
Battery: improve performance (Windows)
2022-11-23 15:38:59 +08:00
李通洲
629c2de253
util: add a helper function to convert wide strings (Windows)
2022-11-23 15:38:59 +08:00
李通洲
9ef95e43a3
CPU: improve performance (Windows)
2022-11-22 19:40:57 +08:00
李通洲
4355039329
Host: improve performance (Windows)
2022-11-22 19:40:56 +08:00
李通洲
5aebb400da
Board: improve performance (Windows)
2022-11-22 19:40:56 +08:00
李通洲
fbd8c0237f
BIOS: improve performance (Windows)
2022-11-22 19:40:56 +08:00
李通洲
04c9d16c16
util: introduce register helpers and use them (Windows)
2022-11-22 19:40:56 +08:00
李通洲
308408a962
Processes: improve performance (Windows)
2022-11-22 19:40:56 +08:00
李通洲
19c5904561
Memory: improve performance by not querying WMI (Windows)
2022-11-21 15:45:53 +08:00
Linus Dierheimer
c0037c99e4
Refactor CMakeLists.txt
2022-11-20 18:14:32 +01:00
李通洲
e3de39d3ab
Windows: add version info in binaries
2022-11-12 21:33:31 +08:00
李通洲
4f97692245
Networking: support nowait connection (Windows)
2022-11-03 20:25:09 +08:00
李通洲
5472621ac0
Disk: support freebsd
...
Also rewrite macOS detection to share code with bsd
2022-10-27 16:45:59 +08:00
李通洲
895d151e2e
Host: support freebsd
2022-10-27 11:15:53 +08:00
李通洲
60ad6792ba
CpuUsage: support freebsd
2022-10-27 10:17:29 +08:00
李通洲
aca2c01c9e
Processes: support freebsd
2022-10-26 17:43:08 +08:00
李通洲
470d160346
Uptime: support freebsd
2022-10-26 17:43:08 +08:00
李通洲
f470744e44
Kernel: improve performance, detect code name (Windows)
2022-10-25 20:02:26 +08:00
Linus Dierheimer
7f82f8d679
Merge pull request #312 from CarterLi/android
...
Android: add vulkan support for GPU detection
2022-10-22 18:19:32 +02:00
李通洲
e13c88cea6
Global: support bar output for percentage value #294
2022-10-22 16:15:12 +08:00
李通洲
fbc76714f5
Android: add vulkan support for GPU detection
...
Termux does have package pciutils, but it's put inside of root-repo and
and doesn't provide libpci.pc. So I think use vulkan can be a better
option than libpci because vulkan.so is provided by Android system.
To build with android support, install `vulkan-headers` and
`vulkan-loader-android` (for `vulkan.pc`).
2022-10-20 17:42:01 +08:00
李通洲
581c6f547d
Swap: split code out from memory detection
...
1. Since swap module is disabled by default, swap detection is unnecessary in most cases.
2. On platform other than Linux, swap detection doesn't share code with memory.
3. Swap detection can be expensive. On Windows, it requires another WMI query which can lag heavily in some cases. Don't pay for you don't use.
2022-10-19 00:24:17 +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
ee705363c1
Disk: Don't always build apple code
2022-10-17 17:13:45 +02:00
Linus Dierheimer
19a9b18c69
Disk: Linux impl working
2022-10-17 13:19:48 +02: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
李通洲
76684e49ca
TerminalShell: speed up PowerShell version detection by querying the version of pwsh.exe file
...
Also add cmd version detection
2022-10-15 22:45:30 +08:00
李通洲
5749a8f7c1
TerminalShell: improve speed on Windows
...
[NtQueryInformationProcess](https://learn.microsoft.com/en-us/windows/win32/api/winternl/nf-winternl-ntqueryinformationprocess ) is an internal NT syscall which may change in the future. However, unlike other NT syscalls NtQueryInformationProcess is well documented on MSDN, so I think it's safe to use.
Boost shell detection by 0.3s on my machine. Note querying PowerShell's version `pwsh --version` costs another 0.2s
2022-10-15 21:20:58 +08:00
李通洲
a99ca9a1a1
macOS: remove unneeded dependencies
2022-10-15 01:02:46 +08:00