Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: JCKnife on April 20, 2005, 06:05:57 pm

Title: updating Mame with .diff?
Post by: JCKnife on April 20, 2005, 06:05:57 pm
I normally don't go in for the mid-version updates but I'd like to try the new Williams drivers in Robotron. What am I supposed to do with the .diff file? The instructions where I downloaded it were vague and full of jargon and  I just don't know what to do with it.
Title: Re: updating Mame with .diff?
Post by: Thenasty on April 20, 2005, 06:48:37 pm
In addition to the official release, the MAME team periodically releases updates to the most recent official release. These are packaged as diff/patch files and should be applied by switching to the base of your MAME source tree (where the makefile lives) and executing:

     patch -p0 <diffname.diff

where diffname.diff is the name of the .diff file that contains the patch.




then compile away....
Title: Re: updating Mame with .diff?
Post by: JCKnife on April 20, 2005, 07:08:49 pm
This is what I read. It made no sense to me.

What is the base of my Mame source tree? What is a makefile and where does it live? When I go to my Mame directory, there is no "patch" executeable so when I try this command it does nothing.

So confused.

Wait a minute, "then compile away?" So these updates are only for people who use the Mame source code?

In that case I'll have to wait for the .96 binary. Nevermind.
Title: Re: updating Mame with .diff?
Post by: Thenasty on April 20, 2005, 07:23:50 pm
or you can grab the compiled version already here

http://redump.emubase.de/mame.php

if you still need explanation to your Q's above LMK.
Title: Re: updating Mame with .diff?
Post by: rescue161 on August 23, 2005, 02:14:48 pm
Okay,
I'm trying to get 099u3 up and running and don't have a clue as to what to do.
Title: Re: updating Mame with .diff?
Post by: lokki on August 23, 2005, 02:58:08 pm
need to do a few things to get this to work. from the error it sounds like you don't have the source code in the right location

Get the code for MAME 99, Unzip the source code
Get the diff files for 99u1, 99u2, 99u3

Unzipped code to \mamecode
go to this directory
and from here run all the patches in order


patch 99u1
patch 99u2
pathc 99u3


Title: Re: updating Mame with .diff?
Post by: rescue161 on August 23, 2005, 03:25:05 pm
Okay, I did that and all went well as far as I can tell.

What do I do now?

Do I move my MAME folder into the MAMECode folder? or the other way around?
Title: Re: updating Mame with .diff?
Post by: lokki on August 23, 2005, 04:23:26 pm
You now have to compile the code.

type make at that directory.

You can move the resulting .exe files to your mame directory
Title: Re: updating Mame with .diff?
Post by: SirPoonga on August 23, 2005, 06:14:46 pm
JCKnife, a diff file contains the changes between two different files/directories.  In this case the diff file for the u releases is source code changes.  You are going to have to compile mame.  From the sounds of it you didn't realize that.
Title: Re: updating Mame with .diff?
Post by: rescue161 on August 24, 2005, 01:29:43 am
Do I have to download one of the compile utilities?  If so, which one?

I'm using regular MAME99B in Windows.

Thanks for all the help.
Title: Re: updating Mame with .diff?
Post by: SirPoonga on August 24, 2005, 02:44:15 pm
Follow these instructions
http://www.mame.net/compilewin.html

However, don't use the links in the instructions, goto the download page/Main downloads.
You will need (vor 0.92 or newer)
mame099s.zip
MinGW-3.2.0-rc-3.exe
mingw-over-092.zip

One thing the instructions won't say is you need to extract mingw-over into the mingw folder.

Basic summary of what is going on
Download files.
Install MingW.
Update MingW libraries and Includes (with ming-over)
setup environment variables (so mingw knows where stuff is)
extract mame source code
compile mame.

compiling mame isn;t that hard, until something goes wrong then you have to know something about programming and compiling to fix.