Hello,
I have a simple unzip class built and it works fine while I test in the editor, but once it is built, it appears that the script will not run. Here is some code I have. I am using the Ionic.zip.dll.
ZipHelper.cs:
using UnityEngine;
using System.Collections;
using Ionic.Zip;
public class ZipHelper {
public static string ExtractZip(string filePath, string destFolder){
using(ZipFile zip = ZipFile.Read(filePath)){
// extracting entries
foreach(ZipEntry z in zip){
z.Extract(destFolder, ExtractExistingFileAction.OverwriteSilently);
}
}
}
}
Where It Is Called:
ZipHelper.ExtractZip(DirectoryHelper.getDownloadPath() + "/forgesrc.zip", Directory.GetCurrentDirectory());
I have already tried running the program as administrator to avoid any r/w issues. This does not work either, but the referenced DLL does appear to be loading fine in the log file. No other errors or weird events show up in the log file so i am about as confused as i can get.