yoo2.2,9
This commit is contained in:
Alex-Rachel
2025-01-25 13:46:17 +08:00
parent 634a392a1f
commit 6166fd24c6
584 changed files with 15684 additions and 11714 deletions

View File

@@ -1,9 +1,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Security.Cryptography;
using System.Text;
namespace YooAsset
{
@@ -29,7 +27,7 @@ namespace YooAsset
if (string.IsNullOrEmpty(str))
return str;
int index = str.LastIndexOf(".");
int index = str.LastIndexOf('.');
if (index == -1)
return str;
else
@@ -121,7 +119,7 @@ namespace YooAsset
public static string ReadAllText(string filePath)
{
if (File.Exists(filePath) == false)
return string.Empty;
return null;
return File.ReadAllText(filePath, Encoding.UTF8);
}