Common: Expose CPU extension list directly.

A bit silly to rely on the specific string formatting of a summary.
This commit is contained in:
Unknown W. Brackets committed 2023-01-29 15:13:44 -08:00
1 parent 368aba3c8d
commit 09eb509df4
7 files changed
+164 -58

No files matched your search

+3 -4
View File
@@ -704,10 +704,9 @@ void SystemInfoScreen::CreateViews() {
tabHolder->AddTab(si->T("CPU Extensions"), cpuExtensionsScroll);
cpuExtensions->Add(new ItemHeader(si->T("CPU Extensions")));
std::vector<std::string> exts;
SplitString(cpu_info.Summarize(), ',', exts);
for (size_t i = 2; i < exts.size(); i++) {
cpuExtensions->Add(new TextView(exts[i], new LayoutParams(FILL_PARENT, WRAP_CONTENT)))->SetFocusable(true);
std::vector<std::string> exts = cpu_info.Features();
for (std::string &ext : exts) {
cpuExtensions->Add(new TextView(ext, new LayoutParams(FILL_PARENT, WRAP_CONTENT)))->SetFocusable(true);
}
ViewGroup *driverBugsScroll = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, FILL_PARENT));