李通洲
1dc578badb
Wifi: silence warnings
2022-12-02 01:20:06 +08:00
李通洲
be698bd806
Processes: don't hard code magic numbers (Windows)
2022-12-02 01:12:56 +08:00
李通洲
0cad657ce2
Swap: correct implementation (Windows)
2022-12-02 01:12:48 +08:00
李通洲
7991abab0b
TerminalFont: support deepin-terminal
2022-12-01 17:45:17 +08:00
李通洲
b3e635a923
Wifi: support macOS
2022-11-28 16:59:11 +08:00
李通洲
974dc96259
Wifi: support multiple interfaces
2022-11-28 16:29:30 +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
李通洲
4cf1d5bf94
util: rename unicode helper function names
2022-11-27 12:21:32 +08:00
李通洲
4316ba988b
CpuUsage: optimise performance further
2022-11-25 23:14:41 +08:00
李通洲
c6a9217c74
Windows: silense compiler warnings
2022-11-25 23:13:57 +08:00
李通洲
0ab38bb4d7
CPU: fix cpu freq detection in WSL
...
`/sys/devices/system/cpu/cpufreq/policy0/` doesn't exist in WSL
2022-11-24 23:30:54 +08:00
李通洲
7da45d6c2c
DE: fix detection for Windows Server
2022-11-24 23:30:54 +08:00
李通洲
d500bdff96
WmTheme: convert known color values to readable strings
2022-11-24 17:38:40 +08:00
李通洲
4b3ed67877
TerminalShell: detect Clink
2022-11-24 11:24:12 +08:00
李通洲
11258c0d8d
TerminalShell: code cleanup (Windows)
2022-11-24 11:23:45 +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
李通洲
b28da1057c
WmTheme: detect accent color (Windows)
2022-11-23 20:01:40 +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
李通洲
66f8a8cdd0
TerminalFont: fix Windows Terminal font detection when running inside msys2
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
李通洲
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
李通洲
6a304dbb4d
OS: 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
李通洲
1c69d6c788
Disk: use statvfs64 only when __USE_LARGEFILE64 is defined
2022-11-20 19:43:02 +08:00
李通洲
55c6374949
WmTheme: support Windows 7
2022-11-20 00:57:32 +08:00
李通洲
0a65867937
Windows: fix memleaks
2022-11-20 00:52:52 +08:00
李通洲
859f645fe5
Disk: fix size detection on 32bit Linux
...
Ref: #337
2022-11-18 00:10:16 +08:00
李通洲
f1cc94207e
Host: detect WSL version
2022-11-17 22:36:49 +08:00
李通洲
fde9379bb2
Android: simplify code; fix mistakes in terminal font detection code
2022-11-17 20:19:27 +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
李通洲
fb78d9bbb9
TerminalFont: support Warp; improve performance of Apple Terminal (macOS)
2022-11-17 19:53:12 +08:00
李通洲
a498e9e142
CPU: don't remove (R) in CPU name to be consistant with GPU name
2022-11-17 10:33:50 +08:00
李通洲
0361a30c40
Font: simplify code; fix memleaks (macOS)
2022-11-17 10:18:13 +08:00
李通洲
d0c18c4679
DisplayServer: don't use private API (macOS)
2022-11-17 10:18:13 +08:00
李通洲
8aca8a2229
Temps: silence compiler warnings
2022-11-17 10:18:13 +08:00
李通洲
3f008c4b6d
CpuUsage: improve performance
2022-11-15 17:48:57 +08:00
李通洲
227eb707d2
CpuUsage: fix calucation on Windows
2022-11-15 17:30:16 +08:00