Skip to content

Commit

Permalink
Handle translation_oldassets
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Sep 27, 2022
1 parent 4d3be90 commit 6e8424e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/ReleaseTool/ReleaseTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ void AddToZip(string filePath, string entryName)
}

var assetDir = Path.Combine(tlDir, "RedirectedResources\\assets");
if (Directory.Exists(assetDir) && Directory.GetFiles(assetDir, "translation.txt", SearchOption.AllDirectories).Any())
if (Directory.Exists(assetDir) && Directory.GetFiles(assetDir, "translation*.txt", SearchOption.AllDirectories).Any())
{
var assZipPath = GetTempFileName();
using (var assZipFile = ZipFile.Create(assZipPath))
{
assZipFile.BeginUpdate(new MemoryArchiveStorage(FileUpdateMode.Direct));

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

0 comments on commit 6e8424e

Please sign in to comment.