mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-08-03 19:36:53 -04:00
修复 macOS 上无法读取 CPU 信息的问题 (#4009)
This commit is contained in:
parent
88637b33bc
commit
aaf1218536
@ -49,7 +49,7 @@ public final class MacOSHardwareDetector extends HardwareDetector {
|
||||
|
||||
try {
|
||||
Map<String, String> values = SystemUtils.run(Arrays.asList("/usr/sbin/sysctl", "machdep.cpu"),
|
||||
inputStream -> KeyValuePairUtils.loadProperties(
|
||||
inputStream -> KeyValuePairUtils.loadPairs(
|
||||
new BufferedReader(new InputStreamReader(inputStream, OperatingSystem.NATIVE_CHARSET))));
|
||||
|
||||
String brandString = values.get("machdep.cpu.brand_string");
|
||||
|
Loading…
x
Reference in New Issue
Block a user