summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authordeath2droid <death2droid@gmail.com>2009-11-14 08:53:16 +0000
committerdeath2droid <death2droid@gmail.com>2009-11-14 08:53:16 +0000
commit2667a469fbcc4b6c7da0a59ccbb4532a1b0564ec (patch)
tree40b7198d01b54f6fa146b77d5f9c476f8adbad41 /Source/Core/Common
parentde9991c30d683ce496a22b9bae0a2074bac7f887 (diff)
Dolphin:
System Information(InfoWindow.cpp) - Added a method to check what Windows OS you are running(I do not know of a method to check what linux OS someone is using) and also added a extended version of the cpu_summarize. Plugin manager - Temporarily fixed a problem that caused a crashing when pressing Stop reported in Issue 1656 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4561 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/Src/CPUDetect.cpp20
-rw-r--r--Source/Core/Common/Src/CPUDetect.h3
2 files changed, 23 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/CPUDetect.cpp b/Source/Core/Common/Src/CPUDetect.cpp
index cd77d37346..b09570283d 100644
--- a/Source/Core/Common/Src/CPUDetect.cpp
+++ b/Source/Core/Common/Src/CPUDetect.cpp
@@ -201,3 +201,23 @@ std::string CPUInfo::Summarize()
if (bLongMode) sum += ", 64-bit support";
return sum;
}
+
+// Turn the cpu info into a string we can show(This version uses headings and line breaks)
+std::string CPUInfo::Summarize_long()
+{
+ std::string sum;
+ sum = StringFromFormat("CPU Brand: %s\n",cpu_string);
+
+ sum += StringFromFormat("Number of cores: %i \n ",num_cores);
+
+ sum+= "Supported instruction sets:\n";
+
+ if (bSSE) sum += " -SSE\n";
+ if (bSSE2) sum += " -SSE2\n";
+ if (bSSE3) sum += " -SSE3\n";
+ if (bSSSE3) sum += " -SSSE3\n";
+ if (bSSE4_1) sum += " -SSE4.1\n";
+ if (bSSE4_2) sum += " -SSE4.2\n";
+ if (bLongMode) sum += "64-bit supported";
+ return sum;
+} \ No newline at end of file
diff --git a/Source/Core/Common/Src/CPUDetect.h b/Source/Core/Common/Src/CPUDetect.h
index 55a0de93c9..7d3796f5a8 100644
--- a/Source/Core/Common/Src/CPUDetect.h
+++ b/Source/Core/Common/Src/CPUDetect.h
@@ -58,6 +58,9 @@ struct CPUInfo
// Turn the cpu info into a string we can show
std::string Summarize();
+
+ // Turn the cpu info into a string we can show(This version uses headings and line breaks)
+ std::string Summarize_long();
};
extern CPUInfo cpu_info;