diff options
| author | flacs <tilkax@gmail.com> | 2015-09-23 18:55:10 +0200 |
|---|---|---|
| committer | flacs <tilkax@gmail.com> | 2015-09-23 18:55:10 +0200 |
| commit | 40da69d5a2a5c5fb9cd46f80e4b7a54ad45479fa (patch) | |
| tree | 962a4c6f84fdbae840704760571fcbb3cee1df97 /Source | |
| parent | 9ac7e13d17e753c2ba7cb47d963e03becc00a80d (diff) | |
| parent | c7148c9660d85bbdc8de32bdc3e425586539b02f (diff) | |
Merge pull request #3081 from lioncash/si-enum
SI_Device: Convert define constants over to enums
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/HW/SI_Device.h | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/Source/Core/Core/HW/SI_Device.h b/Source/Core/Core/HW/SI_Device.h index 1aa0bd125f..c1e9cfa602 100644 --- a/Source/Core/Core/HW/SI_Device.h +++ b/Source/Core/Core/HW/SI_Device.h @@ -9,17 +9,26 @@ class PointerWrap; // Devices can reply with these -#define SI_ERROR_NO_RESPONSE 0x0008 // Nothing is attached -#define SI_ERROR_UNKNOWN 0x0040 // Unknown device is attached -#define SI_ERROR_BUSY 0x0080 // Still detecting +enum +{ + SI_ERROR_NO_RESPONSE = 0x0008, // Nothing is attached + SI_ERROR_UNKNOWN = 0x0040, // Unknown device is attached + SI_ERROR_BUSY = 0x0080 // Still detecting +}; // Device types -#define SI_TYPE_MASK 0x18000000u // ??? -#define SI_TYPE_GC 0x08000000u +enum +{ + SI_TYPE_MASK = 0x18000000, // ??? + SI_TYPE_GC = 0x08000000 +}; // GC Controller types -#define SI_GC_NOMOTOR 0x20000000u // No rumble motor -#define SI_GC_STANDARD 0x01000000u +enum +{ + SI_GC_NOMOTOR = 0x20000000, // No rumble motor + SI_GC_STANDARD = 0x01000000 +}; // SI Device IDs for emulator use enum TSIDevices |
