Compare commits

..

No commits in common. "160867b0377d30f82e32f3e078be18fcb17e413f" and "294e6ac1773a4373cd558bc4ba00eaff3821c642" have entirely different histories.

3 changed files with 10 additions and 13 deletions

View File

@ -1,19 +1,12 @@
{
"name": "AxibugEmuOnline.Client",
"rootNamespace": "",
"references": [
"UIEffect",
"AxiReplay",
"Unity.Postprocessing.Runtime",
"VirtualNes.Core"
"Unity.Postprocessing.Runtime"
],
"optionalUnityReferences": [],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": true,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
"allowUnsafeCode": true
}

View File

@ -36,7 +36,7 @@ namespace AxibugEmuOnline.Client
}
AxiHttpProxy.ShowAxiHttpDebugInfo(request.downloadHandler);
if (request.downloadHandler.Err == null)
if (request.downloadHandler.Err != null)
{
Directory.CreateDirectory(path);
File.WriteAllBytes($"{path}/{url.GetHashCode()}", request.downloadHandler.data);

View File

@ -137,9 +137,13 @@ namespace AxibugEmuOnline.Client
downloadRequest = null;
if (request.downloadHandler.Err != null)
callback(request.downloadHandler.data);
{
callback(null);
}
else
callback(null);
{
callback(request.downloadHandler.data);
}
//downloadRequest = UnityWebRequest.Get($"{App.httpAPI.WebHost}/{webData.url}");
//yield return downloadRequest.SendWebRequest();