-
Notifications
You must be signed in to change notification settings - Fork 24
Patch.downloadFromURL
#downloadFromURL
public IEnumerator downloadFromURL(string url, string saveLocation, bool unzip=false)
#Parameters
Type | Name | Description string | url | The url to a file. EX: "https://www.dropbox.com/s/y1lckubwva024pb/version.txt?dl=1" string | saveLocation | Where you want the file from the url to be saved to. bool | unzip | If you want the file to be unzipped when it is finished downloading.
#Description
This will download a file from a supplied url. It will optionally unzip it for you if mark "unzip" as true.
#Example
Download a file but don't try to unzip it.
using GameDevRepo;
void Start() {
PatchSystem patch = new PatchSystem();
patch.downloadFromURL("https://www.dropbox.com/s/y1lckubwva024pb/version.txt?dl=1","C:\version.txt");
}
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