mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 08:09:19 +00:00
CPUDetect: Make CPUVendor enum an enum class
Avoids dumping the enum contents into the global namespace.
This commit is contained in:
parent
bf8ffe5bfb
commit
fd9eab73fb
3 changed files with 11 additions and 11 deletions
|
@ -7,17 +7,17 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
enum CPUVendor
|
||||
enum class CPUVendor
|
||||
{
|
||||
VENDOR_INTEL = 0,
|
||||
VENDOR_AMD = 1,
|
||||
VENDOR_ARM = 2,
|
||||
VENDOR_OTHER = 3,
|
||||
Intel,
|
||||
AMD,
|
||||
ARM,
|
||||
Other,
|
||||
};
|
||||
|
||||
struct CPUInfo
|
||||
{
|
||||
CPUVendor vendor = VENDOR_INTEL;
|
||||
CPUVendor vendor = CPUVendor::Intel;
|
||||
|
||||
char cpu_string[0x41] = {};
|
||||
char brand_string[0x21] = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue