Skip to content

Commit 46dc76d

Browse files
committed
simplify current directory handling
1 parent 4d13cbc commit 46dc76d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Commands.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ internal static Int32 CreateFunction(String format, String? imageFile, String? d
4949
File.Move(tempFile, outputFile, true);
5050
}
5151
else {
52-
outputFile = Path.Join(Environment.CurrentDirectory, $"{photo.Format switch {
52+
outputFile = $"{photo.Format switch {
5353
PhotoFormat.GTA5 => "PGTA5",
5454
PhotoFormat.RDR2 => "PRDR3",
5555
_ => String.Empty
56-
}}{uid}");
56+
}}{uid}";
5757
File.Move(tempFile, outputFile, true);
5858
Console.WriteLine(outputFile);
5959
}

0 commit comments

Comments
 (0)