|
@@ -253,7 +253,7 @@ namespace GFGEditor
|
|
|
}
|
|
|
|
|
|
//清除无资源的Md5数据
|
|
|
- public static void DeleteUnnecessaryImageMD5(string[] saveNames)
|
|
|
+ private static void DeleteUnnecessaryImageMD5(string[] saveNames)
|
|
|
{
|
|
|
for (int j = 0; j < saveNames.Length; j++)
|
|
|
{
|
|
@@ -276,7 +276,7 @@ namespace GFGEditor
|
|
|
ImagesClip.WriteSourceImagesMD5(sourceResMD5, saveName);
|
|
|
}
|
|
|
}
|
|
|
- public static void DeleteUnnecessaryImageRes(string targetPath, string[] saveNames)
|
|
|
+ private static void DeleteUnnecessaryImageRes(string targetPath, string[] saveNames)
|
|
|
{
|
|
|
string[] includeExtensionNames = new string[] { ".png", ".jpg" };
|
|
|
if (!Directory.Exists(targetPath))
|
|
@@ -323,7 +323,7 @@ namespace GFGEditor
|
|
|
Debug.Log(targetPath + "清除完成!");
|
|
|
}
|
|
|
//清除冗余位置文件
|
|
|
- public static void DeleteUnnecessaryImagePos(string targetPath)
|
|
|
+ private static void DeleteUnnecessaryImagePos(string targetPath)
|
|
|
{
|
|
|
string[] includeExtensionNames = new string[] { ".png", ".jpg" };
|
|
|
var files = Directory.GetFiles(targetPath);
|
|
@@ -371,6 +371,8 @@ namespace GFGEditor
|
|
|
if (!existFile)
|
|
|
{
|
|
|
File.Delete(lfile);
|
|
|
+ //写入删除文件脚本
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
foreach (var lDir in localDirs)
|