~ubuntu-branches/ubuntu/lucid/sdlmame/lucid

« back to all changes in this revision

Viewing changes to src/emu/mame.h

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Falco
  • Date: 2009-11-03 17:10:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091103171015-6hop4ory5lxnumpn
Tags: 0.135-0ubuntu1
* New upstream release - Closes (LP: #403212)
* debian/watch: unstable releases are no longer detected
* mame.ini: added the cheat subdirectories to cheatpath so zipped
  cheatfiles will be searched too
* renamed crsshair subdirectory to crosshair to reflect upstream change
* mame.ini: renamed references to crosshair subdirectory (see above)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#endif /* MESS */
28
28
 
29
29
 
30
 
// temporary: set this to 1 to pre-decode graphics like we used to
31
 
#define PREDECODE_GFX           (0)
32
 
 
33
 
 
34
 
 
35
30
/***************************************************************************
36
31
    CONSTANTS
37
32
***************************************************************************/
76
71
 
77
72
/* maxima */
78
73
#define MAX_GFX_ELEMENTS                32
79
 
#define MAX_MEMORY_REGIONS              32
80
74
 
81
75
 
82
76
/* MESS vs. MAME abstractions */
135
129
typedef struct _state_private state_private;
136
130
typedef struct _memory_private memory_private;
137
131
typedef struct _palette_private palette_private;
 
132
typedef struct _tilemap_private tilemap_private;
138
133
typedef struct _streams_private streams_private;
139
134
typedef struct _devices_private devices_private;
 
135
typedef struct _romload_private romload_private;
 
136
typedef struct _sound_private sound_private;
 
137
typedef struct _input_private input_private;
140
138
typedef struct _input_port_private input_port_private;
141
139
typedef struct _ui_input_private ui_input_private;
142
140
typedef struct _cheat_private cheat_private;
153
151
        const input_port_config *portconfig;            /* points to a list of input port configurations */
154
152
 
155
153
        /* CPU information */
156
 
        const device_config *   cpu[8];                         /* array of first 8 CPU devices */
 
154
        const device_config *   firstcpu;                       /* first CPU (allows for quick iteration via typenext) */
157
155
 
158
156
        /* game-related information */
159
157
        const game_driver *             gamedrv;                        /* points to the definition of the game machine */
168
166
        const pen_t *                   pens;                           /* remapped palette pen numbers */
169
167
        struct _colortable_t *  colortable;                     /* global colortable for remapping */
170
168
        pen_t *                                 shadow_table;           /* table for looking up a shadowed pen */
 
169
        bitmap_t *                              priority_bitmap;        /* priority bitmap */
171
170
 
172
171
        /* audio-related information */
173
172
        int                                             sample_rate;            /* the digital audio sample rate */
182
181
        state_private *                 state_data;                     /* internal data from state.c */
183
182
        memory_private *                memory_data;            /* internal data from memory.c */
184
183
        palette_private *               palette_data;           /* internal data from palette.c */
 
184
        tilemap_private *               tilemap_data;           /* internal data from tilemap.c */
185
185
        streams_private *               streams_data;           /* internal data from streams.c */
186
186
        devices_private *               devices_data;           /* internal data from devices.c */
 
187
        romload_private *               romload_data;           /* internal data from romload.c */
 
188
        sound_private *                 sound_data;                     /* internal data from sound.c */
 
189
        input_private *                 input_data;                     /* internal data from input.c */
187
190
        input_port_private *    input_port_data;        /* internal data from inptport.c */
188
191
        ui_input_private *              ui_input_data;          /* internal data from uiinput.c */
189
192
        cheat_private *                 cheat_data;                     /* internal data from cheat.c */
225
228
 
226
229
 
227
230
/***************************************************************************
228
 
    GLOBAL VARAIBLES
 
231
    GLOBAL VARIABLES
229
232
***************************************************************************/
230
233
 
231
234
extern const char mame_disclaimer[];
266
269
/* handle update tasks for a frame boundary */
267
270
void mame_frame_update(running_machine *machine);
268
271
 
 
272
/* return true if the given machine is valid */
 
273
int mame_is_valid_machine(running_machine *machine);
 
274
 
269
275
 
270
276
 
271
277
/* ----- global system states ----- */