mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 06:20:26 +02:00
Common: Expose CPU extension list directly.
A bit silly to rely on the specific string formatting of a summary.
This commit is contained in:
1 parent
368aba3c8d
commit
09eb509df4
7 files changed
+164
-58
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user