Skip to content

Patch.generateProjectPatches

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

#generateProjectPatches

public IEnumerator generateProjectPatches(string currentFolder, string outdatedFolder, string saveLocation)

##Parameters

Type Name Description
string currentFolder folder containing new versions of files
string outdatedFolder folder containing old versions of files
string saveLocation output directory for produced .delta files

##Description

This will scan the contents of a folder and compare it with another outdated copy of that folder and generate all the delta (patch) files needed to upgrade the old folder to the new folder. You must specify a location to save the output of the delta files.

##Example

using GameDevRepo;

void Start() {
    PatchSystem patch = new PatchSystem();
    StartCoroutine(patch.generateProjectPatches("C:\\myNewFiles","C:\\myOldFiles","C:\\ProducedDeltas"));
}
Clone this wiki locally