Difference between revisions of "Patch"

From Sega Retro

old>Kram1024
 
(44 intermediate revisions by 7 users not shown)
Line 1: Line 1:
==NAME==
+
{{RetroCDN}}
      patch - apply a diff file to an original
+
A '''patch''' is a file or set of files that is used to modify another file or set of files. It may be distributed as either a standalone program, or a data file which requires a specialised program to apply the patch.
  
==SYNOPSIS==
+
==ROM patches==
      '''patch''' [''options''] [''originalfile'' [''patchfile'']]
+
The hacking scene has seen several types of patches, including [[IPS]] and [[RXL]], used for [[ROM hack]]s. Both these types of patch require programs (for example [[StealthPatch]]) to modify the target file. Patches were used during a time when downloading full ROMs would be a lengthy task for slow Internet connections, but with the advent of high-speed Internet connections, patches have fallen into disuse as Sonic-game hackers have made fully modified ROMs available.
  
      but usually just
+
ROM patches are still utilized (and often, required) by other communities, due to precautions related to copyright.
  
      '''patch''' -p''num'' <''patchfile''
+
==Software patches==
 +
More complicated games and programs require more complicated patches. Most installed games consist of many files and folders, so something as simple as an IPS patch would be inappropriate. In these cases, standalone programs are used to modify or replace several files automatically. If a game has a fault which was not detected in the [[beta]] testing phase, the developer will typically distribute a patch to correct it.
  
==DESCRIPTION==
+
[[Category:Technical information]]
      patch  takes  a  patch  file ''patchfile'' containing a difference listing produced by the diff program and applies those differences to one or more original files, producing patched versions.  Normally  the  patched versions are put in place of the originals.  Backups can be made; see the '''-b''' or '''--backup option'''.  The names of the files  to  be  patched  are  usually taken  from  the patch file, but if there’s just one file to be patched it can specified on the command line as ''originalfile''.
 

Latest revision as of 07:19, 7 July 2022

Retrocdn-round.svg
This file or page has been flagged for relocation to Retro CDN, the Wikimedia Commons-esque service for all Retro wikis. This message is for the benefit of Sega Retro wiki staff.

A patch is a file or set of files that is used to modify another file or set of files. It may be distributed as either a standalone program, or a data file which requires a specialised program to apply the patch.

ROM patches

The hacking scene has seen several types of patches, including IPS and RXL, used for ROM hacks. Both these types of patch require programs (for example StealthPatch) to modify the target file. Patches were used during a time when downloading full ROMs would be a lengthy task for slow Internet connections, but with the advent of high-speed Internet connections, patches have fallen into disuse as Sonic-game hackers have made fully modified ROMs available.

ROM patches are still utilized (and often, required) by other communities, due to precautions related to copyright.

Software patches

More complicated games and programs require more complicated patches. Most installed games consist of many files and folders, so something as simple as an IPS patch would be inappropriate. In these cases, standalone programs are used to modify or replace several files automatically. If a game has a fault which was not detected in the beta testing phase, the developer will typically distribute a patch to correct it.