李通洲
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
李通洲
1b7a2c2ed5
MSYS2: remove support
...
MSYS2 version was built for smooth transition from POSIX api to Win32 api. It has almost identical output as Windows native version, except requiring msys runtime dll and being a bit slower.
2022-10-14 18:33:11 +08:00
李通洲
11ad7a8a3d
TerminalShell: unify shell version detection code
2022-10-14 18:33:11 +08:00
李通洲
622f84c971
Kernel: remove special handling for Windows
...
Since we have an implementation for it
2022-10-14 17:39:07 +08:00
Linus Dierheimer
cf048bc723
Refactor package detection code
2022-10-13 21:43:31 +02:00
李通洲
3cc6611614
Windows: support native Windows
2022-10-13 23:49:09 +08:00
李通洲
2689a20889
Uptime: support Windows
2022-10-13 23:49:08 +08:00
李通洲
06262c078d
TerminaFont: move windows specific code into its own file
2022-10-12 21:59:21 +08:00
李通洲
b64a234f8a
Networking: support Windows
2022-10-12 21:59:21 +08:00
李通洲
1b594d9ed1
Thread: add common thread abstraction layer, and make threading optional
2022-10-12 21:59:21 +08:00