Skip to content

Commit

Permalink
Create culture dir
Browse files Browse the repository at this point in the history
  • Loading branch information
uholeschak committed Dec 16, 2024
1 parent 2cc781b commit 0bbe689
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Tools/ApkUncompress/ApkUncompressCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,22 @@ public bool UncompressFromAPK_IndividualElfFiles(ZipFile apk, string filePath, s
continue;
}

string outputFile = assemblyFileName;
if (!string.IsNullOrEmpty(entryPath))
if (!string.IsNullOrEmpty(cultureDir))
{
outputFile = Path.Combine(entryPath, outputFile);
if (string.IsNullOrEmpty(entryPath))
{
entryPath = cultureDir;
}
else
{
entryPath = Path.Combine(entryPath, cultureDir);
}
}

if (!string.IsNullOrEmpty(cultureDir))
string outputFile = assemblyFileName;
if (!string.IsNullOrEmpty(entryPath))
{
outputFile = Path.Combine(cultureDir, outputFile);
outputFile = Path.Combine(entryPath, outputFile);
}

if (!string.IsNullOrEmpty(prefix))
Expand Down

0 comments on commit 0bbe689

Please sign in to comment.