提交
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
// }
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user