Skip to content

Commit 6e8424e

Browse files
committed
Handle translation_oldassets
1 parent 4d3be90 commit 6e8424e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/ReleaseTool/ReleaseTool/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,14 @@ void AddToZip(string filePath, string entryName)
156156
}
157157

158158
var assetDir = Path.Combine(tlDir, "RedirectedResources\\assets");
159-
if (Directory.Exists(assetDir) && Directory.GetFiles(assetDir, "translation.txt", SearchOption.AllDirectories).Any())
159+
if (Directory.Exists(assetDir) && Directory.GetFiles(assetDir, "translation*.txt", SearchOption.AllDirectories).Any())
160160
{
161161
var assZipPath = GetTempFileName();
162162
using (var assZipFile = ZipFile.Create(assZipPath))
163163
{
164164
assZipFile.BeginUpdate(new MemoryArchiveStorage(FileUpdateMode.Direct));
165165

166-
foreach (var file in Directory.GetFiles(assetDir, "translation.txt", SearchOption.AllDirectories))
166+
foreach (var file in Directory.GetFiles(assetDir, "translation*.txt", SearchOption.AllDirectories))
167167
{
168168
var entryName = CleanPath(file.Substring(assetDir.Length));
169169
//Console.WriteLine("Adding to redirected assets archive: " + entryName);

0 commit comments

Comments
 (0)