Skip to content

Commit 145ef89

Browse files
committed
Remove unnecessary pbo prefix file
1 parent 296ccba commit 145ef89

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

KuruExtract/Commands/ExtractDayZCommand.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -218,19 +218,6 @@ private static void ExtractFiles(PBO pbo, ProgressTask task, Settings settings)
218218
bool exclude = settings.ExcludePatterns != null;
219219
string[]? exts = settings.ExcludePatterns ?? settings.IncludePatterns;
220220

221-
var pboName = pbo.FileName!.Substring(0, pbo.FileName.Length - 4);
222-
var prefixPath = Path.Combine(settings.Destination!, pbo.Prefix!, pboName + ".txt");
223-
var dir = Path.GetDirectoryName(prefixPath);
224-
225-
if (dir != null)
226-
Directory.CreateDirectory(dir);
227-
228-
using (var targetFile = File.Create(prefixPath))
229-
{
230-
using var writer = new StreamWriter(targetFile);
231-
writer.Write($"product={pbo.Product};\nprefix={pbo.Prefix};\nversion={pbo.Version};\n");
232-
}
233-
234221
foreach (var file in CollectionsMarshal.AsSpan(pbo.Files))
235222
{
236223
if (!ShouldExclude(file.FileName, exts, exclude))

0 commit comments

Comments
 (0)