diff options
Diffstat (limited to 'src/emu/audit.h')
-rw-r--r-- | src/emu/audit.h | 56 |
1 files changed, 34 insertions, 22 deletions
diff --git a/src/emu/audit.h b/src/emu/audit.h index b17ddecca68..88557dbf5b1 100644 --- a/src/emu/audit.h +++ b/src/emu/audit.h @@ -28,34 +28,46 @@ #define AUDIT_VALIDATE_FULL (HASH_CRC | HASH_SHA) /* return values from audit_verify_roms and audit_verify_samples */ -#define CORRECT 0 -#define BEST_AVAILABLE 1 -#define INCORRECT 2 -#define NOTFOUND 3 +enum +{ + CORRECT = 0, + BEST_AVAILABLE, + INCORRECT, + NOTFOUND +}; /* image types for audit_record.type */ -#define AUDIT_FILE_ROM 0 -#define AUDIT_FILE_DISK 1 -#define AUDIT_FILE_SAMPLE 2 +enum +{ + AUDIT_FILE_ROM = 0, + AUDIT_FILE_DISK, + AUDIT_FILE_SAMPLE +}; /* status values for audit_record.status */ -#define AUDIT_STATUS_GOOD 0 -#define AUDIT_STATUS_FOUND_INVALID 1 -#define AUDIT_STATUS_NOT_FOUND 2 -#define AUDIT_STATUS_ERROR 3 +enum +{ + AUDIT_STATUS_GOOD = 0, + AUDIT_STATUS_FOUND_INVALID, + AUDIT_STATUS_NOT_FOUND, + AUDIT_STATUS_ERROR +}; /* substatus values for audit_record.substatus */ -#define SUBSTATUS_GOOD 0 -#define SUBSTATUS_GOOD_NEEDS_REDUMP 1 -#define SUBSTATUS_FOUND_NODUMP 2 -#define SUBSTATUS_FOUND_BAD_CHECKSUM 3 -#define SUBSTATUS_FOUND_WRONG_LENGTH 4 -#define SUBSTATUS_NOT_FOUND 5 -#define SUBSTATUS_NOT_FOUND_NODUMP 6 -#define SUBSTATUS_NOT_FOUND_OPTIONAL 7 -#define SUBSTATUS_NOT_FOUND_PARENT 8 -#define SUBSTATUS_NOT_FOUND_BIOS 9 -#define SUBSTATUS_ERROR 100 +enum +{ + SUBSTATUS_GOOD = 0, + SUBSTATUS_GOOD_NEEDS_REDUMP, + SUBSTATUS_FOUND_NODUMP, + SUBSTATUS_FOUND_BAD_CHECKSUM, + SUBSTATUS_FOUND_WRONG_LENGTH, + SUBSTATUS_NOT_FOUND, + SUBSTATUS_NOT_FOUND_NODUMP, + SUBSTATUS_NOT_FOUND_OPTIONAL, + SUBSTATUS_NOT_FOUND_PARENT, + SUBSTATUS_NOT_FOUND_BIOS, + SUBSTATUS_ERROR = 100 +}; |