diff options
author | 2010-06-17 20:06:54 +0000 | |
---|---|---|
committer | 2010-06-17 20:06:54 +0000 | |
commit | 826dba59230eb70043f3ab1a304b9cb4b8ad8fbb (patch) | |
tree | 26b4a6c6a3bbf6388f756799df344a86eabfdbb6 /src/emu/mame.c | |
parent | 5f273b35d8384577d298bab187925ac22ab3ce09 (diff) |
- removed MESS dependency from config.c
- moved image legacy device implementation to devimage.c
- created image.c implementation with initialization of devices/configuration for image devices, used those calls from mame.c
- some minor cleanup of legacy device and initial implementation of some calls
(no whatsnew for now, this is just for log,will put more info on final commit)
Diffstat (limited to 'src/emu/mame.c')
-rw-r--r-- | src/emu/mame.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/emu/mame.c b/src/emu/mame.c index 188d29ad765..98c8318e87b 100644 --- a/src/emu/mame.c +++ b/src/emu/mame.c @@ -52,6 +52,7 @@ - calls the driver's MACHINE_START, SOUND_START, and VIDEO_START callbacks - calls saveload_init() [mame.c] to set up for save/load - calls cheat_init() [cheat.c] to initialize the cheat system + - calls image_init() [image.c] to initialize the image system - calls config_load_settings() [config.c] to load the configuration file - calls nvram_load [machine/generic.c] to load NVRAM @@ -77,6 +78,7 @@ #include "osdepend.h" #include "config.h" #include "debugger.h" +#include "image.h" #include "profiler.h" #include "render.h" #include "cheat.h" @@ -1267,9 +1269,6 @@ running_machine::running_machine(const game_driver *driver) generic_machine_data(NULL), generic_video_data(NULL), generic_audio_data(NULL), -#ifdef MESS - images_data(NULL), -#endif /* MESS */ driver_data(NULL) { try @@ -1418,10 +1417,8 @@ static void init_machine(running_machine *machine) /* initialize natural keyboard support */ inputx_init(machine); -#ifdef MESS - /* first MESS initialization */ - mess_predevice_init(machine); -#endif /* MESS */ + /* initialize image devices */ + image_init(machine); /* start up the devices */ machine->devicelist.start_all(); @@ -1433,11 +1430,6 @@ static void init_machine(running_machine *machine) if (machine->gamedrv->driver_init != NULL) (*machine->gamedrv->driver_init)(machine); -#ifdef MESS - /* second MESS initialization */ - mess_postdevice_init(machine); -#endif /* MESS */ - /* start the video and audio hardware */ video_init(machine); tilemap_init(machine); |