gdl_123 il y a 7 mois
Parent
commit
f10d4211d5

+ 0 - 7
Assets/Content/Icons/ShopIcons/充值货币档位修改.zip.meta

@@ -1,7 +0,0 @@
-fileFormatVersion: 2
-guid: 1c012c54aad4c80438f724c2531ba629
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 14 - 0
Assets/Editor/CsvToLua/CsvToLua.cs

@@ -166,6 +166,10 @@ return aaa";
         {
             MergeLanauage("Assets/Content/Config/LanguagePackage_cn.csv", "Build/NewCfg/ROLanguagePackage_cn.csv", "Build/NewCfg/Language_merge.csv");
         }
+        if (GUILayout.Button("二进制转换"))
+        {
+            B2T("D:/项目/其他/Language15000-19000.csv", "D:/项目/其他/111.csv",Encoding.UTF8);
+        }
     }
 
     public static string GetFilePath()
@@ -777,4 +781,14 @@ return aaa";
         FileHelper.WirteStringToFile(outputPath, data);
     }
 
+
+    private void B2T(string bPath,string outPath, Encoding read)
+    {
+        using (FileStream binaryFileStream = new FileStream(bPath, FileMode.Open, FileAccess.Read))
+        using (StreamReader reader = new StreamReader(binaryFileStream, read)) // 使用ASCII编码读取
+        using (StreamWriter writer = new StreamWriter(outPath))
+        {
+            writer.Write(reader.ReadToEnd()); // 读取并写入文本文件
+        }
+    }
 }