Jump to content

Compiling CPS2 only mame.


Recommended Posts

Well, there is CPS2MAME, but i don't know anything about it's current status. It's been around for a long time too.

 

If you wanted to know anything else, I can't help.

Link to comment
Share on other sites

Well, there is CPS2MAME, but i don't know anything about it's current status. It's been around for a long time too.

 

If you wanted to know anything else, I can't help.

That's ok. I've already gotten it to build. Currently testing SFA3.

Link to comment
Share on other sites

  • 4 weeks later...

Instructions for compiling CPS2 only MAME

 

This assumes mame or xmame 0.86 (might work with other versions):

 

Apply the following patch on the source tree with the following command:

patch -Np1 < xmame-cps2.patch

This patch removes the neo specific stuff from a couple of the source files so you won't get linking errors at the end of the build. If building on windows, the "patch" command should come with the cygwin environment needed to run the gcc compiler used to build mame.

 

xmame-cps2.patch:

diff -urN xmame-0.86.old/src/cheat.c xmame-0.86/src/cheat.c
--- xmame-0.86.old/src/cheat.c  2004-08-23 08:10:45.000000000 +0800
+++ xmame-0.86/src/cheat.c      2004-09-21 17:17:27.533441656 +0800
@@ -7904,6 +7904,7 @@
                               return 1;

#ifndef MESS
+#define TINY_COMPILE
#ifndef TINY_COMPILE

                       {
diff -urN xmame-0.86.old/src/usrintrf.c xmame-0.86/src/usrintrf.c
--- xmame-0.86.old/src/usrintrf.c       2004-08-23 08:25:58.000000000 +0800
+++ xmame-0.86/src/usrintrf.c   2004-09-21 17:17:05.771749936 +0800
@@ -22,6 +22,7 @@
#endif


+#define TINY_COMPILE

/***************************************************************************

 

Edit src/mame.mak and remove all the unwanted stuff so that it looks like the following:

CPUS+=Z80@
CPUS+=M68000@
CPUS+=M68EC020@
CPUS+=M68020@

SOUNDS+=YM2151_ALT@
SOUNDS+=OKIM6295@
SOUNDS+=QSOUND@

DRVLIBS = $(OBJ)/capcom.a

$(OBJ)/capcom.a: \
       $(OBJ)/machine/kabuki.o \
       $(OBJ)/vidhrdw/cps1.o $(OBJ)/drivers/cps1.o $(OBJ)/drivers/cps2.o

COREOBJS += $(OBJ)/driver.o $(OBJ)/cheat.o

# generated text files
TEXTS += gamelist.txt

gamelist.txt: $(EMULATOR)
       @echo Generating $@...
       @$(CURPATH)$(EMULATOR) -gamelist -noclones -sortname > docs/gamelist.txt

 

Edit src/driver.c and delete the non-CPS2 games and/or the games you don't want.

 

Finally, run "make" for a lean, lightweight MAME. :P

Edited by ugenn
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...