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

+11 -2
View File
@@ -53,11 +53,20 @@ void CPUInfo::Detect()
logical_cpu_count = 2;
}
std::vector<std::string> CPUInfo::Features() {
std::vector<std::string> features;
return features;
}
// Turn the cpu info into a string we can show
std::string CPUInfo::Summarize()
{
std::string CPUInfo::Summarize() {
std::string sum;
sum = StringFromFormat("%s, %i core", cpu_string, num_cores);
auto features = Features();
for (std::string &feature : features) {
sum += ", " + feature;
}
return sum;
}
#endif