mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-31 14:08:48 +00:00
style : Code text indent format
This commit is contained in:
@@ -32,7 +32,7 @@ namespace YooAsset
|
|||||||
{
|
{
|
||||||
Directory.Delete(FileRootPath, true);
|
Directory.Delete(FileRootPath, true);
|
||||||
}
|
}
|
||||||
catch(System.Exception e)
|
catch (System.Exception e)
|
||||||
{
|
{
|
||||||
YooLogger.Warning($"Failed delete cache bundle folder : {e}");
|
YooLogger.Warning($"Failed delete cache bundle folder : {e}");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace YooAsset
|
namespace YooAsset
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace YooAsset
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static void EditorRequestDebugReport()
|
public static void EditorRequestDebugReport()
|
||||||
{
|
{
|
||||||
if(UnityEditor.EditorApplication.isPlaying)
|
if (UnityEditor.EditorApplication.isPlaying)
|
||||||
{
|
{
|
||||||
var report = YooAssets.GetDebugReport();
|
var report = YooAssets.GetDebugReport();
|
||||||
EditorHandleDebugReportCallback?.Invoke(0, report);
|
EditorHandleDebugReportCallback?.Invoke(0, report);
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
|
using UnityEngine;
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace YooAsset
|
namespace YooAsset
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ namespace YooAsset
|
|||||||
if (offset > _timeout)
|
if (offset > _timeout)
|
||||||
{
|
{
|
||||||
YooLogger.Warning($"Web file request timeout : {_requestURL}");
|
YooLogger.Warning($"Web file request timeout : {_requestURL}");
|
||||||
if(_requester != null)
|
if (_requester != null)
|
||||||
_requester.Abort();
|
_requester.Abort();
|
||||||
_isAbort = true;
|
_isAbort = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ namespace YooAsset
|
|||||||
_steps = ESteps.PrepareDone;
|
_steps = ESteps.PrepareDone;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_steps == ESteps.PrepareDone)
|
if (_steps == ESteps.PrepareDone)
|
||||||
{
|
{
|
||||||
if (_provider.IsDone == false)
|
if (_provider.IsDone == false)
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -347,7 +347,7 @@ namespace YooAsset
|
|||||||
if (_cachingOperation == null)
|
if (_cachingOperation == null)
|
||||||
{
|
{
|
||||||
_cachingOperation = new PackageCachingOperation(_impl.Persistent, _impl.Cache);
|
_cachingOperation = new PackageCachingOperation(_impl.Persistent, _impl.Cache);
|
||||||
OperationSystem.StartOperation(_impl.PackageName,_cachingOperation);
|
OperationSystem.StartOperation(_impl.PackageName, _cachingOperation);
|
||||||
}
|
}
|
||||||
|
|
||||||
Progress = _cachingOperation.Progress;
|
Progress = _cachingOperation.Progress;
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ namespace YooAsset
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected override byte[] HashFinal()
|
protected override byte[] HashFinal()
|
||||||
{
|
{
|
||||||
if(BitConverter.IsLittleEndian)
|
if (BitConverter.IsLittleEndian)
|
||||||
return new[] { (byte)_currentCrc, (byte)(_currentCrc >> 8), (byte)(_currentCrc >> 16), (byte)(_currentCrc >> 24) };
|
return new[] { (byte)_currentCrc, (byte)(_currentCrc >> 8), (byte)(_currentCrc >> 16), (byte)(_currentCrc >> 24) };
|
||||||
else
|
else
|
||||||
return new[] { (byte)(_currentCrc >> 24), (byte)(_currentCrc >> 16), (byte)(_currentCrc >> 8), (byte)_currentCrc };
|
return new[] { (byte)(_currentCrc >> 24), (byte)(_currentCrc >> 16), (byte)(_currentCrc >> 8), (byte)_currentCrc };
|
||||||
|
|||||||
Reference in New Issue
Block a user