Tremulous Forum
Mods => Modding Center => Topic started by: infestor1 on May 03, 2009, 04:36:57 am
-
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
-
.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 (http://www.gnu.org/software/hello/manual/diff/index.html).
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.
-
yeah, but how exactly do you apply the patch?
-
If the QVM works fine, then you can just ignore the patch.
As gimhael link said, patch -p0 < ./thefile.patch does the trick.
-
yeah, i got it, thanks