forked from badman12345/osmose-rpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RomSpecificOption.h
51 lines (43 loc) · 1.04 KB
/
RomSpecificOption.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*****************************************************************************
*
* File: RomSpecificOption.h
*
* Project: Osmose emulator.
*
* Description: This class will store ROM CRC32 and specific options for
* rom that need them to run.
*
* Author: Vedder Bruno
* Date: 22.11.2006 13:08:54
*
* URL: http://bcz.emu-france.com/
*****************************************************************************/
#ifndef ROM_SPECIFIC_OPTION_H
#define ROM_SPECIFIC_OPTION_H
#include "Options.h"
#include <iostream>
enum
{
CODE_MASTER_MAPPER = 0x1,
KOREAN_MAPPER = 0x2,
VIDEO_PAL = 0x4,
INTERRUPT_HACK = 0x8,
SPORT_PADDLE_INPUT = 0x10,
JAPANESE_MACHINE = 0x20
};
/* Entry into our database. */
typedef struct
{
unsigned int crc32;
unsigned int specific_options;
} RSO_DB_Entry;
class SpecificRomOptionDatabase
{
public:
static unsigned int getOptions(unsigned int rom_crc32, Options *o);
private:
/* Private Constructor. This class is never instanciated. */
SpecificRomOptionDatabase();
static const RSO_DB_Entry db[];
};
#endif