Skip to content

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");
}
Clone this wiki locally