diff options
author | thexai <58434170+thexai@users.noreply.github.com> | 2022-06-20 12:22:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 12:22:38 +0200 |
commit | 952f943678c9dd508c013a29e3ae6e2dcf5c5429 (patch) | |
tree | 651d1562655868691d99cf84fc73883519adf967 | |
parent | c4e94af8e67f1eee2aec9e4ae6dee9a0bcbcfd2e (diff) | |
parent | a342f43a09297bc0124da66e48fdd2f6320ffd8b (diff) |
Merge pull request #21550 from joseluismarti/android-cpuinfo
[Android] Display some cpu info that was missing in System information
-rw-r--r-- | xbmc/platform/android/CPUInfoAndroid.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/xbmc/platform/android/CPUInfoAndroid.cpp b/xbmc/platform/android/CPUInfoAndroid.cpp index cd7ee1ad2c..91339d0523 100644 --- a/xbmc/platform/android/CPUInfoAndroid.cpp +++ b/xbmc/platform/android/CPUInfoAndroid.cpp @@ -35,10 +35,21 @@ CCPUInfoAndroid::CCPUInfoAndroid() { if (line.find("vendor_id") != std::string::npos) m_cpuVendor = line.substr(line.find(':') + 2); + else if (line.find("model name") != std::string::npos) m_cpuModel = line.substr(line.find(':') + 2); + else if (line.find("BogoMIPS") != std::string::npos) m_cpuBogoMips = line.substr(line.find(':') + 2); + + else if (line.find("Hardware") != std::string::npos) + m_cpuHardware = line.substr(line.find(':') + 2); + + else if (line.find("Serial") != std::string::npos) + m_cpuSerial = line.substr(line.find(':') + 2); + + else if (line.find("Revision") != std::string::npos) + m_cpuRevision = line.substr(line.find(':') + 2); } } |