Skip to content

Patch.applyPatch

Wesley Haws edited this page Nov 2, 2016 · 1 revision

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