Skip to content

Commit

Permalink
Added - Program now checks if an old file with the same name exists, …
Browse files Browse the repository at this point in the history
…and if so it deletes it
  • Loading branch information
ianespana committed Apr 27, 2017
1 parent 9da0398 commit b9d8995
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WintergatanLaserMIDI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ static void Main(string[] args)
path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\" + args[0] + ".scr";
path = new Uri(path).LocalPath;

if (File.Exists(path))
{
File.Delete(path);
}

if (args.Length == 2 && !string.IsNullOrEmpty(args[1]))
{
if (double.TryParse(args[1], out n))
Expand Down
Binary file modified WintergatanLaserMIDI/obj/Release/WintergatanLaserMIDI.exe
Binary file not shown.
Binary file modified WintergatanLaserMIDI/obj/Release/WintergatanLaserMIDI.pdb
Binary file not shown.

0 comments on commit b9d8995

Please sign in to comment.