mirror of
https://github.com/Syping/ragephoto-cli.git
synced 2025-12-04 16:51:48 +01:00
simplify current directory handling
This commit is contained in:
parent
4d13cbc7b0
commit
46dc76de4e
1 changed files with 2 additions and 2 deletions
|
|
@ -49,11 +49,11 @@ internal static partial class Commands {
|
||||||
File.Move(tempFile, outputFile, true);
|
File.Move(tempFile, outputFile, true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
outputFile = Path.Join(Environment.CurrentDirectory, $"{photo.Format switch {
|
outputFile = $"{photo.Format switch {
|
||||||
PhotoFormat.GTA5 => "PGTA5",
|
PhotoFormat.GTA5 => "PGTA5",
|
||||||
PhotoFormat.RDR2 => "PRDR3",
|
PhotoFormat.RDR2 => "PRDR3",
|
||||||
_ => String.Empty
|
_ => String.Empty
|
||||||
}}{uid}");
|
}}{uid}";
|
||||||
File.Move(tempFile, outputFile, true);
|
File.Move(tempFile, outputFile, true);
|
||||||
Console.WriteLine(outputFile);
|
Console.WriteLine(outputFile);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue