Skip to content

Commit

Permalink
Shorten "new file" line
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHinrichs authored Mar 31, 2024
1 parent 988ece5 commit 0947d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static void Main(string[] args)
{
var file = uvgi.ReadLine().Split(' ');
uvga.BaseStream.Position = int.Parse(file[1]);
BinaryWriter bw = new(File.Create(Path.GetDirectoryName(args[0]) + "//" + Path.GetFileNameWithoutExtension(args[0]) + "//" + file[0] + ".png"));
BinaryWriter bw = new(File.Create(path + "//" + file[0] + ".png"));
bw.Write(uvga.ReadBytes(int.Parse(file[2])));
bw.Close();
}
Expand Down

0 comments on commit 0947d58

Please sign in to comment.