Add loading pck via terminal

This commit is contained in:
miku-666
2022-08-27 14:16:45 +02:00
parent fcf3018d0d
commit 14746d8c51
2 changed files with 19 additions and 14 deletions

View File

@@ -14,7 +14,10 @@ namespace PckStudio
[STAThread]
static void Main(string[] args)
{
Application.Run(new MainForm());
var f = new MainForm();
if (args.Length > 0 && args[0].EndsWith(".pck"))
f.LoadFromPath(args[0]);
Application.Run(f);
}
}
}