-
Notifications
You must be signed in to change notification settings - Fork 24
Patch.applyPatch
#applyPatch
public string applyPatch(string oldFilePath, string deltaFilePath, string outputFilePath="")
##Parameters
Type | Name | Description |
---|---|---|
string | oldFilePath | folder containing outdated files. |
string | deltaFilePath | folder containg all .delta files |
string | outputFilePath | where to put all the updated .new files |
##Description
This will scan the entire directory and apply all .delta files that have the same name as the file. This produces a .new file and saves it at your desired location. If you don't supply an outputFilePath then it will save it at the same location as the old file.
##Example
using GameDevRepo;
void Start() {
PatchSystem patch = new PatchSystem();
string output = patch.applyPatch("C:\\oldVersionProject\\","C:\\deltaFolder\\",C:\\updatedFiles\\");
}
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