-
Notifications
You must be signed in to change notification settings - Fork 24
Patch.generateDeltaFile
Wesley Haws edited this page Nov 2, 2016
·
1 revision
#generateDeltaFile
public string generateDeltaFile(string signaturePath, string newFilePath, string saveDeltaLocation="")
##Parameters
Type | Name | Description |
---|---|---|
string | signaturePath | Location of signature file |
string | newFilePath | new version of file location. |
string | saveDeltaLocation | folder path of where to save the generated .delta file |
##Description
Generates a delta file from a signature file (generated from the old file) and the current version of the file. The delta is simply a collection of the differences and how to apply them on the old file.
##Example
using GameDevRepo;
void Start(){
PatchSystem patch = new PatchSystem();
string output = patch.generateDeltaFile("C:\\myOldFile.sig","C:\\myNewFile.cs","C:\\myNewFile.delta");
}
The following is a list of github repositories that made all of this possible:
delta patches: https://github.com/OctopusDeploy/Octodiff
.net 4 implemented in Monodevelop: https://github.com/mono/mono
Tuples In Unity: https://gist.github.com/michaelbartnett/5652076
Octodiff: https://github.com/OctopusDeploy/Octodiff
Input Manager: https://github.com/daemon3000/InputManager