This commit is contained in:
2026-06-12 15:47:48 +08:00
parent c7d554be9f
commit 3bf5bb091b
2 changed files with 3 additions and 3 deletions
@@ -110,10 +110,10 @@ Debug.Log("000000000000000000000000000000");
var path = Path.Combine(FileNetworkManager.Instance.GetConfigFOlderPath(), savedCfgName); var path = Path.Combine(FileNetworkManager.Instance.GetConfigFOlderPath(), savedCfgName);
bool have_config = false; bool have_config = false;
if (Directory.Exists(path)) if (Directory.Exists(FileNetworkManager.Instance.GetConfigFOlderPath()))
{ {
// 获取该目录下的所有文件 // 获取该目录下的所有文件
string[] files = Directory.GetFiles(path); string[] files = Directory.GetFiles(FileNetworkManager.Instance.GetConfigFOlderPath());
if (files.Length > 0) if (files.Length > 0)
{ {
@@ -94,7 +94,7 @@ namespace SGModule.ConfigLoader
Debug.Log("0000000000000000000000000000004"); Debug.Log("0000000000000000000000000000004");
var destFilePath = Path.Combine(_configFolderPath, jsonFileName); var destFilePath = Path.Combine(_configFolderPath, jsonFileName);
File.WriteAllBytes(destFilePath, jsonFile.bytes); File.WriteAllBytes(destFilePath, jsonFile.bytes);
Debug.Log("0000000000000000000000000000005"); Debug.Log("0000000000000000000000000000005");
onComplete?.Invoke(true); onComplete?.Invoke(true);
// } // }