- Fixed compile

- Moved some defines from MESS to MAME
- Cleaned MESS side and therefore removed some includes
(no whatsnew)
This commit is contained in:
Miodrag Milanovic 2010-06-27 09:58:57 +00:00
parent 943e90a36e
commit a456b3322d
6 changed files with 9 additions and 14 deletions

View File

@ -24,9 +24,6 @@
#include <new>
#include <ctype.h>
#ifdef MESS
#include "climess.h"
#endif /* MESS */

View File

@ -387,7 +387,7 @@ done:
}
}
}
return err ? FALSE : TRUE;
return err ? IMAGE_INIT_FAIL : IMAGE_INIT_PASS;
}
@ -409,7 +409,7 @@ bool legacy_image_device_base::load(const char *path)
bool legacy_image_device_base::finish_load()
{
bool err = FALSE;
bool err = IMAGE_INIT_PASS;
if (m_is_loading)
{

View File

@ -121,6 +121,11 @@ typedef void (*device_image_get_devices_func)(device_image_interface &device);
// MACROS
//**************************************************************************
#define IMAGE_INIT_PASS FALSE
#define IMAGE_INIT_FAIL TRUE
#define IMAGE_VERIFY_PASS FALSE
#define IMAGE_VERIFY_FAIL TRUE
#define DEVICE_IMAGE_LOAD_NAME(name) device_load_##name
#define DEVICE_IMAGE_LOAD(name) int DEVICE_IMAGE_LOAD_NAME(name)(device_image_interface &image)

View File

@ -215,16 +215,14 @@ void image_device_init(running_machine *machine)
if ((image_name != NULL) && (image_name[0] != '\0'))
{
bool result = FALSE;
/* mark init state */
image->set_init_phase();
/* try to load this image */
result = image->load(image_name);
bool result = image->load(image_name);
/* did the image load fail? */
if (!result)
if (result)
{
/* retrieve image error message */
const char *image_err = image->error();

View File

@ -18,10 +18,6 @@
#include <ctype.h>
#ifdef MESS
#include "infomess.h"
#endif /* MESS */
/* MESS/MAME configuration */
#ifdef MESS
#define XML_ROOT "mess"

View File

@ -1332,7 +1332,6 @@ $(MAMEOBJ)/taito.a: \
$(DRIVERS)/volfied.o $(MACHINE)/volfied.o $(VIDEO)/volfied.o \
$(DRIVERS)/warriorb.o $(VIDEO)/warriorb.o \
$(DRIVERS)/wgp.o $(VIDEO)/wgp.o \
$(MACHINE)/daikaiju.o \
$(AUDIO)/taitosnd.o \
$(AUDIO)/t5182.o \
$(MACHINE)/taitoio.o \