update file system
IFileSystem新增ReadFileData方法
This commit is contained in:
@@ -72,8 +72,7 @@ namespace YooAsset
|
||||
{
|
||||
if (IsValidWithWarning == false)
|
||||
return null;
|
||||
string filePath = Provider.RawFilePath;
|
||||
return FileUtility.ReadAllBytes(filePath);
|
||||
return Provider.RawBundleObject.ReadFileData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -83,8 +82,7 @@ namespace YooAsset
|
||||
{
|
||||
if (IsValidWithWarning == false)
|
||||
return null;
|
||||
string filePath = Provider.RawFilePath;
|
||||
return FileUtility.ReadAllText(filePath);
|
||||
return Provider.RawBundleObject.ReadFileText();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -94,7 +92,7 @@ namespace YooAsset
|
||||
{
|
||||
if (IsValidWithWarning == false)
|
||||
return string.Empty;
|
||||
return Provider.RawFilePath;
|
||||
return Provider.RawBundleObject.GetFilePath();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user