mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 17:05:39 +02:00
@@ -36,36 +36,49 @@ namespace Perun_v1
|
|||||||
{
|
{
|
||||||
// Get argument server port
|
// Get argument server port
|
||||||
if (args[1] != null)
|
if (args[1] != null)
|
||||||
|
{
|
||||||
|
if (args[1] != "-1")
|
||||||
{
|
{
|
||||||
con_txt_dcs_server_port.Text = args[1];
|
con_txt_dcs_server_port.Text = args[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (args.Length > 2)
|
if (args.Length > 2)
|
||||||
{
|
{
|
||||||
// Get argument instance id
|
// Get argument instance id
|
||||||
if (args[2] != null)
|
if (args[2] != null)
|
||||||
|
{
|
||||||
|
if (args[2] != "-1")
|
||||||
{
|
{
|
||||||
con_txt_dcs_instance.Text = args[2];
|
con_txt_dcs_instance.Text = args[2];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (args.Length > 3)
|
if (args.Length > 3)
|
||||||
{
|
{
|
||||||
// Get argument DCS SRS file path
|
// Get argument DCS SRS file path
|
||||||
if (args[3] != null)
|
if (args[3] != null)
|
||||||
|
{
|
||||||
|
if (args[3] != "-1")
|
||||||
{
|
{
|
||||||
con_txt_3rd_srs.Text = args[3];
|
con_txt_3rd_srs.Text = args[3];
|
||||||
con_check_3rd_srs.Checked = true;
|
con_check_3rd_srs.Checked = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (args.Length > 4)
|
if (args.Length > 4)
|
||||||
{
|
{
|
||||||
// Get argument lotATC file path
|
// Get argument lotATC file path
|
||||||
if (args[4] != null)
|
if (args[4] != null)
|
||||||
|
{
|
||||||
|
if (args[4] != "-1")
|
||||||
{
|
{
|
||||||
con_txt_3rd_lotatc.Text = args[4];
|
con_txt_3rd_lotatc.Text = args[4];
|
||||||
con_check_3rd_lotatc.Checked = true;
|
con_check_3rd_lotatc.Checked = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (args.Length > 5)
|
if (args.Length > 5)
|
||||||
{
|
{
|
||||||
@@ -73,12 +86,15 @@ namespace Perun_v1
|
|||||||
if (args[5] != null)
|
if (args[5] != null)
|
||||||
{
|
{
|
||||||
if (args[5] == "1")
|
if (args[5] == "1")
|
||||||
|
{
|
||||||
|
if (args[5] != "-1")
|
||||||
{
|
{
|
||||||
TIM_Autostart.Enabled = true;
|
TIM_Autostart.Enabled = true;
|
||||||
PerunHelper.AddLog(ref Globals.AppLogHistory, "Autostart parameter provided", 0, 1);
|
PerunHelper.AddLog(ref Globals.AppLogHistory, "Autostart parameter provided", 0, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Initialize controls
|
// Initialize controls
|
||||||
con_img_db.Image = (Image)Properties.Resources.ResourceManager.GetObject("status_disconnected");
|
con_img_db.Image = (Image)Properties.Resources.ResourceManager.GetObject("status_disconnected");
|
||||||
|
|||||||
@@ -48,8 +48,8 @@ Windows app supports command line arguments, what may be handy in case of multip
|
|||||||
The following arguments are accepted (keep the order!):
|
The following arguments are accepted (keep the order!):
|
||||||
* server port (shall be the same as in the lua file!)
|
* server port (shall be the same as in the lua file!)
|
||||||
* instance ID (shall be the same as in the lua file!)
|
* instance ID (shall be the same as in the lua file!)
|
||||||
* path to SRS client-list.json
|
* path to SRS client-list.json OR put -1 if you do not want to use DCS SRS
|
||||||
* path to LotATC stats.json
|
* path to LotATC stats.json OR put -1 if you do not want to use LotATC
|
||||||
* numeric value (without quotes), set 1 for Autostart (Perun will start within 500ms after starting up)
|
* numeric value (without quotes), set 1 for Autostart (Perun will start within 500ms after starting up)
|
||||||
|
|
||||||
Example for windows shortcut:
|
Example for windows shortcut:
|
||||||
|
|||||||
Reference in New Issue
Block a user