Fix for file arguments no longer opening the PCK

This commit is contained in:
MattNL
2023-11-13 16:52:33 -05:00
parent 100471c52a
commit 5f9d09120f
2 changed files with 8 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ namespace PckStudio
RPC.Initialize();
MainInstance = new MainForm();
if (args.Length > 0 && File.Exists(args[0]) && args[0].EndsWith(".pck"))
MainInstance.LoadPckFromFile(args[0]);
MainInstance.InitPckFromFile(args[0]);
Application.ApplicationExit += (sender, e) => { RPC.Deinitialize(); };
Application.Run(MainInstance);
}