Commit d03f7167 authored by Christopher Lees's avatar Christopher Lees

Fix: LBAHeader crashed if launched with no args

parent dfc604a3
......@@ -8,7 +8,11 @@ namespace LBAHeader
static byte[] data;
static void Main(string[] args)
string f = args[0];
string f = string.Empty;
if (args.Length >= 1)
f = args[0];
if (!System.IO.File.Exists(f))
//If we can't find our initial argument, try and locate the openBVE executable in our directory
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment