summaryrefslogtreecommitdiffstatshomepage
path: root/src/ume
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-08-21 10:41:19 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-08-21 10:41:19 +0000
commit7285b359d259b2ae0fdf85096571c386ec8c991a (patch)
treea027aff57f1a255f9ec6cfd3b68cabe4b6683998 /src/ume
parent67c425e90757876a6716b7867df30c0149912e74 (diff)
Merge of MESS sources (no whatsnew)
Diffstat (limited to 'src/ume')
-rw-r--r--src/ume/ume.c49
-rw-r--r--src/ume/ume.lst14
-rw-r--r--src/ume/ume.mak22
3 files changed, 85 insertions, 0 deletions
diff --git a/src/ume/ume.c b/src/ume/ume.c
new file mode 100644
index 00000000000..3d744ec2746
--- /dev/null
+++ b/src/ume/ume.c
@@ -0,0 +1,49 @@
+/***************************************************************************
+
+ ume.c
+
+ Specific (per target) constants
+
+ Copyright Nicola Salmoria and the MAME Team.
+ Visit http://mamedev.org for licensing and usage restrictions.
+
+****************************************************************************/
+#include "emu.h"
+
+#define APPNAME "UME"
+#define APPNAME_LOWER "ume"
+#define CONFIGNAME "ume"
+#define APPLONGNAME "U.M.E."
+#define FULLLONGNAME "Universal Machine Emulator"
+#define CAPGAMENOUN "GAME"
+#define CAPSTARTGAMENOUN "Game"
+#define GAMENOUN "game"
+#define GAMESNOUN "games"
+#define COPYRIGHT "Copyright Nicola Salmoria\nand the MAME and MESS teams"
+#define COPYRIGHT_INFO "Copyright Nicola Salmoria and the MAME and MESS teams"
+#define DISCLAIMER "This is promo build of combined MAME and MESS emulators made in order to\n" \
+ "promote both projects and show possibilities to new potential users.\n\n" \
+ "Note that bugs noticed in this build should not be forwarded to development\n"\
+ "teams unless those are confirmed in original builds as well.\n"
+#define USAGE "Usage: %s [%s] [media] [software] [options]"
+#define XML_ROOT "mame"
+#define XML_TOP "game"
+#define STATE_MAGIC_NUM "MAMESAVE"
+
+const char * emulator_info::get_appname() { return APPNAME;}
+const char * emulator_info::get_appname_lower() { return APPNAME_LOWER;}
+const char * emulator_info::get_configname() { return CONFIGNAME;}
+const char * emulator_info::get_applongname() { return APPLONGNAME;}
+const char * emulator_info::get_fulllongname() { return FULLLONGNAME;}
+const char * emulator_info::get_capgamenoun() { return CAPGAMENOUN;}
+const char * emulator_info::get_capstartgamenoun() { return CAPSTARTGAMENOUN;}
+const char * emulator_info::get_gamenoun() { return GAMENOUN;}
+const char * emulator_info::get_gamesnoun() { return GAMESNOUN;}
+const char * emulator_info::get_copyright() { return COPYRIGHT;}
+const char * emulator_info::get_copyright_info() { return COPYRIGHT_INFO;}
+const char * emulator_info::get_disclaimer() { return DISCLAIMER;}
+const char * emulator_info::get_usage() { return USAGE;}
+const char * emulator_info::get_xml_root() { return XML_ROOT;}
+const char * emulator_info::get_xml_top() { return XML_TOP;}
+const char * emulator_info::get_state_magic_num() { return STATE_MAGIC_NUM;}
+void emulator_info::printf_usage(const char *par1, const char *par2) { mame_printf_info(USAGE, par1, par2); }
diff --git a/src/ume/ume.lst b/src/ume/ume.lst
new file mode 100644
index 00000000000..09232f10b6a
--- /dev/null
+++ b/src/ume/ume.lst
@@ -0,0 +1,14 @@
+/******************************************************************************
+
+ ume.lst
+
+ List of all enabled drivers in the system. This file is parsed by
+ makelist.exe, sorted, and output as C code describing the drivers.
+
+******************************************************************************/
+
+#src/mame/mame.lst
+!3do
+!cd32
+!cdimono1
+#src/mess/mess.lst
diff --git a/src/ume/ume.mak b/src/ume/ume.mak
new file mode 100644
index 00000000000..df3fbbb147b
--- /dev/null
+++ b/src/ume/ume.mak
@@ -0,0 +1,22 @@
+###########################################################################
+#
+# ume.mak
+#
+# Universal target makefile
+#
+###########################################################################
+CFLAGS += \
+ -I$(SRC)/ume \
+ -I$(SRC)/mame \
+ -I$(OBJ)/mame/layout \
+ -I$(SRC)/mess \
+ -I$(OBJ)/mess/layout \
+ -I$(SRC)/mess/osd \
+ -I$(SRC)/mess/osd/$(OSD)
+
+OBJDIRS += $(OBJ)/ume
+
+$(DRIVLISTSRC): $(SRC)/mame/mame.lst $(SRC)/mess/mess.lst
+
+include $(SRC)/mame/mame.mak
+include $(SRC)/mess/mess.mak