Develop and Download Open Source Software

Browse CVS Repository

Contents of /mame32jp/mame32jp/src/audit.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (show annotations) (download) (as text)
Wed Apr 24 03:53:20 2002 UTC (21 years, 11 months ago) by zero
Branch: MAIN
CVS Tags: ver_0_60_1, ver0_59_13, ver0_59_14, ver0_60_2, ver0_60_3, ver0_60_4, ver0_60_5, HEAD
Changes since 1.4: +0 -0 lines
File MIME type: text/x-chdr
*** empty log message ***

1
2 #ifndef AUDIT_H
3 #define AUDIT_H
4
5 /* return values from VerifyRomSet and VerifySampleSet */
6 #define CORRECT 0
7 #define NOTFOUND 1
8 #define INCORRECT 2
9 #define CLONE_NOTFOUND 3
10 #define BEST_AVAILABLE 4
11
12 /* rom status values for tAuditRecord.status */
13 #define AUD_ROM_GOOD 0x00000001
14 #define AUD_ROM_NEED_REDUMP 0x00000002
15 #define AUD_ROM_NOT_FOUND 0x00000004
16 #define AUD_NOT_AVAILABLE 0x00000008
17 #define AUD_BAD_CHECKSUM 0x00000010
18 #define AUD_MEM_ERROR 0x00000020
19 #define AUD_LENGTH_MISMATCH 0x00000040
20 #define AUD_ROM_NEED_DUMP 0x00000080
21
22 #define AUD_MAX_ROMS 100 /* maximum roms per driver */
23 #define AUD_MAX_SAMPLES 200 /* maximum samples per driver */
24
25
26 typedef struct
27 {
28 char rom[20]; /* name of rom file */
29 unsigned int explength; /* expected length of rom file */
30 unsigned int length; /* actual length of rom file */
31 unsigned int expchecksum; /* expected checksum of rom file */
32 unsigned int checksum; /* actual checksum of rom file */
33 int status; /* status of rom file */
34 } tAuditRecord;
35
36 typedef struct
37 {
38 char name[20]; /* name of missing sample file */
39 } tMissingSample;
40
41 typedef void (CLIB_DECL *verify_printf_proc)(char *fmt,...);
42
43 int AuditRomSet (int game, tAuditRecord **audit);
44 int VerifyRomSet(int game,verify_printf_proc verify_printf);
45 int AuditSampleSet (int game, tMissingSample **audit);
46 int VerifySampleSet(int game,verify_printf_proc verify_printf);
47 int RomInSet (const struct GameDriver *gamedrv, unsigned int crc);
48 int RomsetMissing (int game);
49
50
51 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26