News:

Come Chat with us live! Learn how HERE!

Main Menu

.patch

Started by infestor1, May 03, 2009, 04:36:57 AM

infestor1

What are those .patch files I keep seeing in my QVM downloads?

What are they, and how do I use them?

Thanks in advance!
~Andrew

gimhael

.patch files contain the differences between two versions of text files (usually source codes).
They can be generated with the "diff" program and applied with the "patch" program.
All the boring details are here.

You basically have to get the common source code, then apply the .patch file to produce the patched sourcecode, and then compile a new QVM from that.

riderrocker

yeah, but how exactly do you apply the patch?

David

If the QVM works fine, then you can just ignore the patch.
As gimhael link said, patch -p0 < ./thefile.patch does the trick.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

riderrocker

yeah, i got it, thanks