Commit 782cd700 authored by Szefo09's avatar Szefo09

up

parent 27d63c27
......@@ -330,10 +330,7 @@ public class Program : MonoBehaviour
if (!File.Exists(GamePaths + "updates/version2.0.txt"))
{
string filePath = Application.streamingAssetsPath + "/ygocore.zip";
var www = new WWW(filePath);
while (!www.isDone) { }
byte[] bytes = www.bytes;
ExtractZipFile(System.IO.File.ReadAllBytes(bytes), GamePaths);
ExtractZipFile(System.IO.File.ReadAllBytes(filePath), GamePaths);
}
Environment.CurrentDirectory = GamePaths;
System.IO.Directory.SetCurrentDirectory(GamePaths);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment